SPNegoScheme or KerberosScheme.@Deprecated public class NegotiateScheme extends GGSSchemeBase
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,
String authServer)
Deprecated.
|
protected byte[] |
generateToken(byte[] input,
String authServer,
Credentials credentials)
Deprecated.
|
String |
getParameter(String name)
Deprecated.
Returns the authentication parameter with the given name, if available.
|
String |
getRealm()
Deprecated.
The concept of an authentication realm is not supported by the Negotiate
authentication scheme.
|
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 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,
String authServer)
throws GSSException
generateToken in class GGSSchemeBaseGSSExceptionprotected byte[] generateToken(byte[] input,
String authServer,
Credentials credentials)
throws GSSException
generateToken in class GGSSchemeBaseGSSExceptionpublic String getParameter(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 String getRealm()
null.nullpublic boolean isConnectionBased()
true.
Negotiate authentication scheme is connection based.true.Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.