SPNegoScheme or KerberosScheme.@Deprecated public class NegotiateScheme extends GGSSchemeBase
GGSSchemeBase.StatechallengeState| Constructor and Description |
|---|
NegotiateScheme()
Deprecated.
|
NegotiateScheme(SpnegoTokenGenerator spengoGenerator)
Deprecated.
|
NegotiateScheme(SpnegoTokenGenerator spengoGenerator,
boolean stripPort)
Deprecated.
Default constructor for the Negotiate authentication scheme.
|
| Modifier and Type | Method and Description |
|---|---|
Header |
authenticate(Credentials credentials,
HttpRequest request)
Deprecated.
Produces an authorization string for the given set of
Credentials. |
Header |
authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Deprecated.
Produces Negotiate authorization Header based on token created by
processChallenge.
|
protected byte[] |
generateToken(byte[] input,
java.lang.String authServer)
Deprecated.
|
protected byte[] |
generateToken(byte[] input,
java.lang.String authServer,
Credentials credentials)
Deprecated.
|
java.lang.String |
getParameter(java.lang.String name)
Deprecated.
Returns the authentication parameter with the given name, if available.
|
java.lang.String |
getRealm()
Deprecated.
The concept of an authentication realm is not supported by the Negotiate
authentication scheme.
|
java.lang.String |
getSchemeName()
Deprecated.
Returns textual designation of the Negotiate authentication scheme.
|
boolean |
isConnectionBased()
Deprecated.
Returns
true. |
generateGSSToken, generateGSSToken, getManager, isComplete, parseChallengegetChallengeState, isProxy, processChallenge, toStringpublic NegotiateScheme(SpnegoTokenGenerator spengoGenerator, boolean stripPort)
public NegotiateScheme(SpnegoTokenGenerator spengoGenerator)
public NegotiateScheme()
public java.lang.String getSchemeName()
Negotiatepublic Header authenticate(Credentials credentials, HttpRequest request) throws AuthenticationException
AuthSchemeCredentials.authenticate in interface AuthSchemeauthenticate in class GGSSchemeBasecredentials - The set of credentials to be used for athenticationrequest - The request being authenticatedAuthenticationException - if authorization string cannot
be generated due to an authentication failurepublic Header authenticate(Credentials credentials, HttpRequest request, HttpContext context) throws AuthenticationException
authenticate in interface ContextAwareAuthSchemeauthenticate in class GGSSchemeBasecredentials - Never used be the Negotiate scheme but must be provided to
satisfy common-httpclient API. Credentials from JAAS will be used instead.request - The request being authenticatedcontext - HTTP contextAuthenticationException - if authorisation 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 GGSSchemeBaseorg.ietf.jgss.GSSExceptionprotected byte[] generateToken(byte[] input,
java.lang.String authServer,
Credentials credentials)
throws org.ietf.jgss.GSSException
generateToken in class GGSSchemeBaseorg.ietf.jgss.GSSExceptionpublic java.lang.String getParameter(java.lang.String name)
There are no valid parameters for Negotiate authentication so this
method always returns null.
name - The name of the parameter to be returnedpublic java.lang.String getRealm()
null.nullpublic boolean isConnectionBased()
true.
Negotiate authentication scheme is connection based.true.