Class GGSSchemeBase
java.lang.Object
org.apache.http.impl.auth.AuthSchemeBase
org.apache.http.impl.auth.GGSSchemeBase
- All Implemented Interfaces:
AuthScheme, ContextAwareAuthScheme
- Direct Known Subclasses:
KerberosScheme, SPNegoScheme
- Since:
- 4.2
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate(Credentials credentials, HttpRequest request) Deprecated.authenticate(Credentials credentials, HttpRequest request, HttpContext context) Produces an authorization string for the given set ofCredentials.protected byte[]generateGSSToken(byte[] input, Oid oid, String authServer) protected abstract byte[]generateToken(byte[] input, String authServer) protected GSSManagerbooleanAuthentication process may involve a series of challenge-response exchanges.protected voidparseChallenge(CharArrayBuffer buffer, int beginIndex, int endIndex) Methods inherited from class AuthSchemeBase
getChallengeState, isProxy, processChallenge, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AuthScheme
getParameter, getRealm, getSchemeName, isConnectionBased
-
Method Details
-
getManager
-
generateGSSToken
- Throws:
GSSException
-
generateToken
- Throws:
GSSException
-
isComplete
public boolean isComplete()Description copied from interface:AuthSchemeAuthentication process may involve a series of challenge-response exchanges. This method tests if the authorization process has been completed, either successfully or unsuccessfully, that is, all the required authorization challenges have been processed in their entirety.- Returns:
- true if the authentication process has been completed, false otherwise.
-
authenticate
@Deprecated public Header authenticate(Credentials credentials, HttpRequest request) throws AuthenticationException Deprecated.Description copied from interface:AuthSchemeProduces an authorization string for the given set ofCredentials.- Parameters:
credentials- The set of credentials to be used for athenticationrequest- The request being authenticated- Returns:
- the authorization string
- Throws:
AuthenticationException- if authorization string cannot be generated due to an authentication failure
-
authenticate
public Header authenticate(Credentials credentials, HttpRequest request, HttpContext context) throws AuthenticationException Description copied from interface:ContextAwareAuthSchemeProduces an authorization string for the given set ofCredentials.- Specified by:
authenticatein interfaceContextAwareAuthScheme- Overrides:
authenticatein classAuthSchemeBase- Parameters:
credentials- The set of credentials to be used for athenticationrequest- The request being authenticatedcontext- HTTP context- Returns:
- the authorization string
- Throws:
AuthenticationException- if authorization string cannot be generated due to an authentication failure
-
parseChallenge
protected void parseChallenge(CharArrayBuffer buffer, int beginIndex, int endIndex) throws MalformedChallengeException - Specified by:
parseChallengein classAuthSchemeBase- Throws:
MalformedChallengeException
-
ContextAwareAuthScheme.authenticate(Credentials, HttpRequest, org.apache.http.protocol.HttpContext)