@NotThreadSafe public class SPNegoScheme extends GGSSchemeBase
GGSSchemeBase.State
challengeState
Constructor and Description |
---|
SPNegoScheme() |
SPNegoScheme(boolean stripPort) |
SPNegoScheme(boolean stripPort,
boolean useCanonicalHostname) |
Modifier and Type | Method and Description |
---|---|
Header |
authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Produces SPNEGO authorization Header based on token created by
processChallenge.
|
protected byte[] |
generateToken(byte[] input,
java.lang.String authServer) |
protected byte[] |
generateToken(byte[] input,
java.lang.String authServer,
Credentials credentials) |
java.lang.String |
getParameter(java.lang.String name)
There are no valid parameters for SPNEGO authentication so this
method always returns
null . |
java.lang.String |
getRealm()
The concept of an authentication realm is not supported by the Negotiate
authentication scheme.
|
java.lang.String |
getSchemeName()
Returns textual designation of the given authentication scheme.
|
boolean |
isConnectionBased()
Returns
true . |
authenticate, generateGSSToken, generateGSSToken, getManager, isComplete, parseChallenge
getChallengeState, isProxy, processChallenge, toString
public SPNegoScheme(boolean stripPort, boolean useCanonicalHostname)
public SPNegoScheme(boolean stripPort)
public SPNegoScheme()
public java.lang.String getSchemeName()
AuthScheme
public Header authenticate(Credentials credentials, HttpRequest request, HttpContext context) throws AuthenticationException
authenticate
in interface ContextAwareAuthScheme
authenticate
in class GGSSchemeBase
credentials
- not used by the SPNEGO scheme.request
- The request being authenticatedcontext
- HTTP contextAuthenticationException
- if authentication string cannot
be generated due to an authentication failureprotected byte[] generateToken(byte[] input, java.lang.String authServer) throws org.ietf.jgss.GSSException
generateToken
in class GGSSchemeBase
org.ietf.jgss.GSSException
protected byte[] generateToken(byte[] input, java.lang.String authServer, Credentials credentials) throws org.ietf.jgss.GSSException
generateToken
in class GGSSchemeBase
org.ietf.jgss.GSSException
public java.lang.String getParameter(java.lang.String name)
null
.name
- The name of the parameter to be returnednull
public java.lang.String getRealm()
null
.null
public boolean isConnectionBased()
true
. SPNEGO authentication scheme is connection based.true
.