Class AuthorizationProvider.AnonymousAuthorizationProvider

    • Constructor Detail

      • AnonymousAuthorizationProvider

        public AnonymousAuthorizationProvider()
    • Method Detail

      • getEncodedAuthorization

        public String getEncodedAuthorization()
                                       throws IOException
        Description copied from interface: AuthorizationProvider
        Returns the credentials to be used with a given request. As an example, a authorization provider for a bearer token will return something like:
         
          @Override
          public String getEncodedAuthorization() {
          return "Bearer myBearerToken";
          }
         
         
        Specified by:
        getEncodedAuthorization in interface AuthorizationProvider
        Returns:
        encoded authorization string, can be null
        Throws:
        IOException - on any error that prevents the provider from getting a valid authorization