SPNegoScheme或KerberosScheme 。
@Deprecated public class NegotiateScheme extends GGSSchemeBase
challengeState| Constructor and Description |
|---|
NegotiateScheme()
已过时。
|
NegotiateScheme(SpnegoTokenGenerator spengoGenerator)
已过时。
|
NegotiateScheme(SpnegoTokenGenerator spengoGenerator, boolean stripPort)
已过时。
Negotiate认证方案的默认构造函数。
|
| Modifier and Type | Method and Description |
|---|---|
Header |
authenticate(Credentials credentials, HttpRequest request)
已过时。
为给定的一组 Credentials生成一个授权字符串。
|
Header |
authenticate(Credentials credentials, HttpRequest request, HttpContext context)
已过时。
根据processChallenge创建的令牌生成协商授权头。
|
protected byte[] |
generateToken(byte[] input, String authServer)
已过时。
|
protected byte[] |
generateToken(byte[] input, String authServer, Credentials credentials)
已过时。
|
String |
getParameter(String name)
已过时。
返回具有给定名称的认证参数(如果可用)。
|
String |
getRealm()
已过时。
认证领域的概念不被协商认证方案支持。
|
String |
getSchemeName()
已过时。
返回协商认证方案的文本指定。
|
boolean |
isConnectionBased()
已过时。
退货
true 。
|
generateGSSToken, generateGSSToken, getManager, isComplete, parseChallengegetChallengeState, isProxy, processChallenge, toStringpublic NegotiateScheme(SpnegoTokenGenerator spengoGenerator, boolean stripPort)
public NegotiateScheme(SpnegoTokenGenerator spengoGenerator)
public NegotiateScheme()
public String getSchemeName()
Negotiate
public Header authenticate(Credentials credentials, HttpRequest request) throws AuthenticationException
AuthScheme复制
Credentials生成授权字符串。
authenticate在接口
AuthScheme
authenticate在
GGSSchemeBase
credentials - 要用于验证的一组凭据
request - 请求被认证
AuthenticationException - 如果授权字符串由于身份验证失败而无法生成
public Header authenticate(Credentials credentials, HttpRequest request, HttpContext context) throws AuthenticationException
authenticate在接口
ContextAwareAuthScheme
authenticate在
GGSSchemeBase类
credentials - 从未使用过协商方案,但必须提供以满足common-httpclient API。
将使用来自JAAS的凭证。
request - 请求进行身份验证
context - HTTP上下文
AuthenticationException - 如果授权字符串由于身份验证失败而无法生成
protected byte[] generateToken(byte[] input,
String authServer)
throws GSSException
generateToken类
GGSSchemeBase
GSSException
protected byte[] generateToken(byte[] input,
String authServer,
Credentials credentials)
throws GSSException
generateToken在
GGSSchemeBase
GSSException
public String getParameter(String name)
Negotiate认证没有有效的参数,所以这个方法总是返回null 。
name - 要返回的参数的名称
public String getRealm()
null 。
null
public boolean isConnectionBased()
true 。
协商认证方案是基于连接的。
true 。
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.