|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.auth.AuthSchemeBase org.apache.http.impl.auth.GGSSchemeBase org.apache.http.impl.auth.KerberosScheme
public class KerberosScheme
KERBEROS authentication scheme.
Field Summary |
---|
Fields inherited from class org.apache.http.impl.auth.AuthSchemeBase |
---|
challengeState |
Constructor Summary | |
---|---|
KerberosScheme()
|
|
KerberosScheme(boolean stripPort)
|
|
KerberosScheme(boolean stripPort,
boolean useCanonicalHostname)
|
Method Summary | |
---|---|
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,
String authServer)
|
protected byte[] |
generateToken(byte[] input,
String authServer,
Credentials credentials)
|
String |
getParameter(String name)
There are no valid parameters for KERBEROS 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 . |
Methods inherited from class org.apache.http.impl.auth.GGSSchemeBase |
---|
authenticate, generateGSSToken, generateGSSToken, getManager, isComplete, parseChallenge |
Methods inherited from class org.apache.http.impl.auth.AuthSchemeBase |
---|
getChallengeState, isProxy, processChallenge, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public KerberosScheme(boolean stripPort, boolean useCanonicalHostname)
public KerberosScheme(boolean stripPort)
public KerberosScheme()
Method Detail |
---|
public String getSchemeName()
AuthScheme
public org.apache.http.Header authenticate(Credentials credentials, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws AuthenticationException
authenticate
in interface ContextAwareAuthScheme
authenticate
in class GGSSchemeBase
credentials
- not used by the KERBEROS scheme.request
- The request being authenticatedcontext
- HTTP context
AuthenticationException
- if authentication string cannot
be generated due to an authentication failureprotected byte[] generateToken(byte[] input, String authServer) throws GSSException
generateToken
in class GGSSchemeBase
GSSException
protected byte[] generateToken(byte[] input, String authServer, Credentials credentials) throws GSSException
generateToken
in class GGSSchemeBase
GSSException
public String getParameter(String name)
null
.
name
- The name of the parameter to be returned
null
public String getRealm()
null
.
null
public boolean isConnectionBased()
true
. KERBEROS authentication scheme is connection based.
true
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |