public class KerberosScheme extends GGSSchemeBase
GGSSchemeBase.State| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
KERBEROS_OID |
challengeState| Constructor and Description |
|---|
KerberosScheme() |
KerberosScheme(boolean stripPort) |
KerberosScheme(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 KERBEROS authorization Header based on token created by
processChallenge.
|
protected byte[] |
generateToken(byte[] input,
java.lang.String authServer) |
protected byte[] |
generateToken(byte[] input,
java.lang.String authServer,
Credentials credentials) |
java.lang.String |
getParameter(java.lang.String name)
There are no valid parameters for KERBEROS authentication so this
method always returns
null. |
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 given authentication scheme.
|
boolean |
isConnectionBased()
Returns
true. |
authenticate, createGSSContext, generateGSSToken, generateGSSToken, getManager, isComplete, parseChallengegetChallengeState, isProxy, processChallenge, toStringprivate static final java.lang.String KERBEROS_OID
public KerberosScheme(boolean stripPort,
boolean useCanonicalHostname)
public KerberosScheme(boolean stripPort)
public KerberosScheme()
public java.lang.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 KERBEROS scheme.request - The request being authenticatedcontext - HTTP contextAuthenticationException - if authentication string cannot
be generated due to an authentication failureprotected byte[] generateToken(byte[] input,
java.lang.String authServer)
throws org.ietf.jgss.GSSException
generateToken in class GGSSchemeBaseorg.ietf.jgss.GSSExceptionprotected byte[] generateToken(byte[] input,
java.lang.String authServer,
Credentials credentials)
throws org.ietf.jgss.GSSException
generateToken in class GGSSchemeBaseorg.ietf.jgss.GSSExceptionpublic java.lang.String getParameter(java.lang.String name)
null.name - The name of the parameter to be returnednullpublic java.lang.String getRealm()
null.nullpublic boolean isConnectionBased()
true. KERBEROS authentication scheme is connection based.true.