public class SPNegoScheme extends GGSSchemeBase
challengeState| Constructor and Description |
|---|
SPNegoScheme() |
SPNegoScheme(boolean stripPort) |
SPNegoScheme(boolean stripPort,
boolean useCanonicalHostname) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.Header |
authenticate(Credentials credentials,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
Produces SPNEGO authorization Header based on token created by
processChallenge.
|
protected byte[] |
generateToken(byte[] input,
String authServer) |
protected byte[] |
generateToken(byte[] input,
String authServer,
Credentials credentials) |
String |
getParameter(String name)
There are no valid parameters for SPNEGO authentication so this
method always returns
null. |
String |
getRealm()
The concept of an authentication realm is not supported by the Negotiate
authentication scheme.
|
String |
getSchemeName()
Returns textual designation of the given authentication scheme.
|
boolean |
isConnectionBased()
Returns
true. |
authenticate, generateGSSToken, generateGSSToken, getManager, isComplete, parseChallengegetChallengeState, isProxy, processChallenge, toStringpublic SPNegoScheme(boolean stripPort,
boolean useCanonicalHostname)
public SPNegoScheme(boolean stripPort)
public SPNegoScheme()
public String getSchemeName()
AuthSchemepublic 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 - 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,
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)
null.name - The name of the parameter to be returnednullpublic String getRealm()
null.nullpublic boolean isConnectionBased()
true. SPNEGO authentication scheme is connection based.true.Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.