Package org.apache.http.impl.auth
Class NegotiateScheme
java.lang.Object
org.apache.http.impl.auth.AuthSchemeBase
org.apache.http.impl.auth.GGSSchemeBase
org.apache.http.impl.auth.NegotiateScheme
- All Implemented Interfaces:
AuthScheme,ContextAwareAuthScheme
Deprecated.
SPNEGO (Simple and Protected GSSAPI Negotiation Mechanism) authentication
scheme.
- Since:
- 4.1
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.http.impl.auth.GGSSchemeBase
GGSSchemeBase.State -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringDeprecated.private final org.apache.commons.logging.LogDeprecated.private final SpnegoTokenGeneratorDeprecated.private static final StringDeprecated.Fields inherited from class org.apache.http.impl.auth.AuthSchemeBase
challengeState -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.NegotiateScheme(SpnegoTokenGenerator spengoGenerator) Deprecated.NegotiateScheme(SpnegoTokenGenerator spengoGenerator, boolean stripPort) Deprecated.Default constructor for the Negotiate authentication scheme. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.Headerauthenticate(Credentials credentials, org.apache.http.HttpRequest request) Deprecated.Produces an authorization string for the given set ofCredentials.org.apache.http.Headerauthenticate(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.getParameter(String name) Deprecated.Returns the authentication parameter with the given name, if available.getRealm()Deprecated.The concept of an authentication realm is not supported by the Negotiate authentication scheme.Deprecated.Returns textual designation of the Negotiate authentication scheme.booleanDeprecated.Returnstrue.Methods inherited from class org.apache.http.impl.auth.GGSSchemeBase
createGSSContext, generateGSSToken, generateGSSToken, getManager, isComplete, parseChallengeMethods inherited from class org.apache.http.impl.auth.AuthSchemeBase
getChallengeState, isProxy, processChallenge, toString
-
Field Details
-
log
private final org.apache.commons.logging.Log logDeprecated. -
SPNEGO_OID
Deprecated.- See Also:
-
KERBEROS_OID
Deprecated.- See Also:
-
spengoGenerator
Deprecated.
-
-
Constructor Details
-
NegotiateScheme
Deprecated.Default constructor for the Negotiate authentication scheme. -
NegotiateScheme
Deprecated. -
NegotiateScheme
public NegotiateScheme()Deprecated.
-
-
Method Details
-
getSchemeName
Deprecated.Returns textual designation of the Negotiate authentication scheme.- Returns:
Negotiate
-
authenticate
public org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request) throws AuthenticationException Deprecated.Description copied from interface:AuthSchemeProduces an authorization string for the given set ofCredentials.- Specified by:
authenticatein interfaceAuthScheme- Overrides:
authenticatein classGGSSchemeBase- Parameters:
credentials- The set of credentials to be used for athenticationrequest- The request being authenticated- Returns:
- the authorization string
- Throws:
AuthenticationException- if authorization string cannot be generated due to an authentication failure
-
authenticate
public org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws AuthenticationException Deprecated.Produces Negotiate authorization Header based on token created by processChallenge.- Specified by:
authenticatein interfaceContextAwareAuthScheme- Overrides:
authenticatein classGGSSchemeBase- Parameters:
credentials- 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 context- Returns:
- an Negotiate authorisation Header
- Throws:
AuthenticationException- if authorisation string cannot be generated due to an authentication failure
-
generateToken
Deprecated.- Overrides:
generateTokenin classGGSSchemeBase- Throws:
GSSException
-
generateToken
protected byte[] generateToken(byte[] input, String authServer, Credentials credentials) throws GSSException Deprecated.- Overrides:
generateTokenin classGGSSchemeBase- Throws:
GSSException
-
getParameter
Deprecated.Returns the authentication parameter with the given name, if available.There are no valid parameters for Negotiate authentication so this method always returns
null.- Parameters:
name- The name of the parameter to be returned- Returns:
- the parameter with the given name
-
getRealm
Deprecated.The concept of an authentication realm is not supported by the Negotiate authentication scheme. Always returnsnull.- Returns:
null
-
isConnectionBased
public boolean isConnectionBased()Deprecated.Returnstrue. Negotiate authentication scheme is connection based.- Returns:
true.
-
SPNegoSchemeorKerberosScheme.