Interface ContextAwareAuthScheme

    • Method Detail

      • authenticate

        org.apache.http.Header authenticate​(Credentials credentials,
                                            org.apache.http.HttpRequest request,
                                            org.apache.http.protocol.HttpContext context)
                                     throws AuthenticationException
        Produces an authorization string for the given set of Credentials.
        Parameters:
        credentials - The set of credentials to be used for athentication
        request - The request being authenticated
        context - HTTP context
        Returns:
        the authorization string
        Throws:
        AuthenticationException - if authorization string cannot be generated due to an authentication failure