SPNegoScheme or KerberosScheme.@Deprecated public class NegotiateScheme extends GGSSchemeBase
| 构造器和说明 |
|---|
NegotiateScheme()
已过时。
|
NegotiateScheme(SpnegoTokenGenerator spengoGenerator)
已过时。
|
NegotiateScheme(SpnegoTokenGenerator spengoGenerator,
boolean stripPort)
已过时。
Default constructor for the Negotiate authentication scheme.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Header |
authenticate(Credentials credentials,
HttpRequest request)
已过时。
Produces an authorization string for the given set of
Credentials. |
Header |
authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
已过时。
Produces Negotiate authorization Header based on token created by
processChallenge.
|
protected byte[] |
generateToken(byte[] input,
java.lang.String authServer)
已过时。
|
java.lang.String |
getParameter(java.lang.String name)
已过时。
Returns the authentication parameter with the given name, if available.
|
java.lang.String |
getRealm()
已过时。
The concept of an authentication realm is not supported by the Negotiate
authentication scheme.
|
java.lang.String |
getSchemeName()
已过时。
Returns textual designation of the Negotiate authentication scheme.
|
boolean |
isConnectionBased()
已过时。
Returns true.
|
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 在接口中 AuthSchemeauthenticate 在类中 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 在接口中 ContextAwareAuthSchemeauthenticate 在类中 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 在类中 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()