Class BasicAuthorizationProcessor

    • Constructor Detail

      • BasicAuthorizationProcessor

        public BasicAuthorizationProcessor​(UserCredentials credentials)
        Creates a new BASIC processor.
        Parameters:
        credentials - the credentials to use for authentication
    • Method Detail

      • createRequestHeader

        public String createRequestHeader​(jakarta.ws.rs.client.ClientRequestContext requestContext)
        Description copied from interface: AuthorizationProcessor
        Creates a value for the HttpHeaders.AUTHORIZATION header.
        Specified by:
        createRequestHeader in interface AuthorizationProcessor
        Parameters:
        requestContext - the client request context
        Returns:
        the value for the HttpHeaders.AUTHORIZATION header or {@link null} if one could not be created by this processor
      • createRequestHeader

        public String createRequestHeader​(jakarta.ws.rs.client.ClientRequestContext requestContext,
                                          List<String> authenticateHeader)
        Description copied from interface: AuthorizationProcessor
        Creates a value for the HttpHeaders.AUTHORIZATION header.
        Specified by:
        createRequestHeader in interface AuthorizationProcessor
        Parameters:
        requestContext - the client request context
        authenticateHeader - the HttpHeaders.WWW_AUTHENTICATE value
        Returns:
        the value for the HttpHeaders.AUTHORIZATION header or {@link null} if one could not be created by this processor