Interface AuthorizationProvider

    • Field Detail


        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:
          public String getEncodedAuthorization() {
          return "Bearer myBearerToken";
        encoded authorization string, can be null
        IOException - on any error that prevents the provider from getting a valid authorization