Class DigestAuthenticator

  • public class DigestAuthenticator
    extends Authenticator
    Authenticator supporting the DIGEST authentication method.
    • Constructor Detail

      • DigestAuthenticator

        public DigestAuthenticator()
    • Method Detail

      • getAuthorization

        public java.lang.String getAuthorization​(java.lang.String requestUri,
                                                 java.lang.String authenticateHeader,
                                                 java.lang.String userName,
                                                 java.lang.String userPassword,
                                                 java.lang.String userRealm)
                                          throws AuthenticationException
        Description copied from class: Authenticator
        Generate the authorization header value that will be sent to the server.
        Specified by:
        getAuthorization in class Authenticator
        requestUri - The request URI
        authenticateHeader - The server authentication header received
        userName - The user name
        userPassword - The user password
        userRealm - The realm for which the provided user name and password are valid. null to indicate all realms.
        The generated authorization header value
        AuthenticationException - When an error occurs
      • getSchemeName

        public java.lang.String getSchemeName()
        Description copied from class: Authenticator
        Get the authentication method.
        Specified by:
        getSchemeName in class Authenticator
        the authentication scheme