Class SPNegoScheme
java.lang.Object
org.apache.hc.client5.http.impl.auth.GGSSchemeBase
org.apache.hc.client5.http.impl.auth.SPNegoScheme
- All Implemented Interfaces:
AuthScheme
SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) authentication
scheme.
Please note this class is considered experimental and may be discontinued or removed in the future.
- Since:
- 4.2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hc.client5.http.impl.auth.GGSSchemeBase
GGSSchemeBase.State -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]generateToken(byte[] input, String serviceName, String authServer) getName()Returns textual designation of the given authentication scheme.booleanDetermines if the authentication scheme is expected to provide an authorization response on a per connection basis instead of the standard per request basisMethods inherited from class org.apache.hc.client5.http.impl.auth.GGSSchemeBase
createGSSContext, generateAuthResponse, generateGSSToken, getManager, getPrincipal, getRealm, isChallengeComplete, isResponseReady, processChallenge, toString
-
Field Details
-
SPNEGO_OID
- See Also:
-
-
Constructor Details
-
SPNegoScheme
- Since:
- 5.0
-
SPNegoScheme
public SPNegoScheme()
-
-
Method Details
-
getName
Description copied from interface:AuthSchemeReturns textual designation of the given authentication scheme.- Returns:
- the name of the given authentication scheme
-
generateToken
protected byte[] generateToken(byte[] input, String serviceName, String authServer) throws GSSException - Specified by:
generateTokenin classGGSSchemeBase- Throws:
GSSException
-
isConnectionBased
public boolean isConnectionBased()Description copied from interface:AuthSchemeDetermines if the authentication scheme is expected to provide an authorization response on a per connection basis instead of the standard per request basis- Returns:
trueif the scheme is connection based,falseif the scheme is request based.
-