Class AuthSchemeBase

  • All Implemented Interfaces:
    AuthScheme, ContextAwareAuthScheme
    Direct Known Subclasses:
    GGSSchemeBase, NTLMScheme, RFC2617Scheme

    public abstract class AuthSchemeBase
    extends java.lang.Object
    implements ContextAwareAuthScheme
    Abstract authentication scheme class that serves as a basis for all authentication schemes supported by HttpClient. This class defines the generic way of parsing an authentication challenge. It does not make any assumptions regarding the format of the challenge nor does it impose any specific way of responding to that challenge.
    • Constructor Detail

      • AuthSchemeBase

        public AuthSchemeBase​(ChallengeState challengeState)
        (4.3) do not use.
        Creates an instance of AuthSchemeBase with the given challenge state.
      • AuthSchemeBase

        public AuthSchemeBase()
    • Method Detail

      • processChallenge

        public void processChallenge​(Header header)
                              throws MalformedChallengeException
        Processes the given challenge token. Some authentication schemes may involve multiple challenge-response exchanges. Such schemes must be able to maintain the state information when dealing with sequential challenges
        Specified by:
        processChallenge in interface AuthScheme
        header - the challenge header
        MalformedChallengeException - is thrown if the authentication challenge is malformed
      • isProxy

        public boolean isProxy()
        Returns true if authenticating against a proxy, false otherwise.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object