SPNegoScheme or KerberosScheme.@Deprecated public class NegotiateScheme extends GGSSchemeBase
GGSSchemeBase.State| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
KERBEROS_OID
Deprecated.
|
private org.apache.commons.logging.Log |
log
Deprecated.
|
private SpnegoTokenGenerator |
spengoGenerator
Deprecated.
|
private static java.lang.String |
SPNEGO_OID
Deprecated.
|
challengeState| 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 |
|---|---|
org.apache.http.Header |
authenticate(Credentials credentials,
org.apache.http.HttpRequest request)
Deprecated.
Produces an authorization string for the given set of
Credentials. |
org.apache.http.Header |
authenticate(Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.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. |
createGSSContext, generateGSSToken, generateGSSToken, getManager, isComplete, parseChallengegetChallengeState, isProxy, processChallenge, toStringprivate final org.apache.commons.logging.Log log
private static final java.lang.String SPNEGO_OID
private static final java.lang.String KERBEROS_OID
private final SpnegoTokenGenerator spengoGenerator
public NegotiateScheme(SpnegoTokenGenerator spengoGenerator, boolean stripPort)
public NegotiateScheme(SpnegoTokenGenerator spengoGenerator)
public NegotiateScheme()
public java.lang.String getSchemeName()
Negotiatepublic org.apache.http.Header authenticate(Credentials credentials, org.apache.http.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 org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.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.