public class KerberosScheme extends GGSSchemeBase
challengeState| Constructor and Description |
|---|
KerberosScheme() |
KerberosScheme(boolean stripPort) |
KerberosScheme(boolean stripPort, boolean useCanonicalHostname) |
| Modifier and Type | Method and Description |
|---|---|
Header |
authenticate(Credentials credentials, HttpRequest request, HttpContext context)
根据processChallenge创建的令牌生成KERBEROS授权头。
|
protected byte[] |
generateToken(byte[] input, String authServer) |
protected byte[] |
generateToken(byte[] input, String authServer, Credentials credentials) |
String |
getParameter(String name)
KERBEROS认证没有有效参数,因此此方法始终返回
null 。
|
String |
getRealm()
认证领域的概念不被协商认证方案支持。
|
String |
getSchemeName()
返回给定认证方案的文本指定。
|
boolean |
isConnectionBased()
退货
true 。
|
authenticate, generateGSSToken, generateGSSToken, getManager, isComplete, parseChallengegetChallengeState, isProxy, processChallenge, toStringpublic KerberosScheme(boolean stripPort,
boolean useCanonicalHostname)
public KerberosScheme(boolean stripPort)
public KerberosScheme()
public String getSchemeName()
AuthScheme复制
public Header authenticate(Credentials credentials, HttpRequest request, HttpContext context) throws AuthenticationException
authenticate在接口
ContextAwareAuthScheme
authenticate在
GGSSchemeBase
credentials - KERBEROS方案未使用。
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)
null 。
name - 要返回的参数的名称
null
public String getRealm()
null 。
null
public boolean isConnectionBased()
true 。
KERBEROS认证方案是基于连接的。
true.
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.