Interface AuthorizationProvider

    • Field Detail

      • ANONYMOUS

        static final AuthorizationProvider ANONYMOUS
        An static instance for an ANONYMOUS authorization provider
    • Method Detail

      • getEncodedAuthorization

        String getEncodedAuthorization()
                                throws IOException
        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";
          }
         
         
        Returns:
        encoded authorization string, can be null
        Throws:
        IOException - on any error that prevents the provider from getting a valid authorization