Class Authenticator

    • Constructor Detail

      • Authenticator

        public Authenticator()
    • Method Detail

      • getAuthorization

        public abstract String getAuthorization​(String requestUri,
                                                String WWWAuthenticate,
                                                Map<String,​Object> UserProperties)
                                         throws AuthenticationException
        Generate the authentication header that will be sent to the server.
        Parameters:
        requestUri - The request URI
        WWWAuthenticate - The server auth challenge
        UserProperties - The user information
        Returns:
        The auth header
        Throws:
        AuthenticationException - When an error occurs
      • getSchemeName

        public abstract String getSchemeName()
        Get the authentication method.
        Returns:
        the auth scheme
      • parseWWWAuthenticateHeader

        public Map<String,​String> parseWWWAuthenticateHeader​(String WWWAuthenticate)
        Utility method to parse the authentication header.
        Parameters:
        WWWAuthenticate - The server auth challenge
        Returns:
        the parsed header