public abstract class GGSSchemeBase extends AuthSchemeBase
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GGSSchemeBase.State |
Modifier and Type | Field and Description |
---|---|
private Base64 |
base64codec |
private org.apache.commons.logging.Log |
log |
private GGSSchemeBase.State |
state
Authentication process state
|
private boolean |
stripPort |
private byte[] |
token
base64 decoded challenge
|
private boolean |
useCanonicalHostname |
challengeState
Constructor and Description |
---|
GGSSchemeBase() |
GGSSchemeBase(boolean stripPort) |
GGSSchemeBase(boolean stripPort,
boolean useCanonicalHostname) |
Modifier and Type | Method and Description |
---|---|
Header |
authenticate(Credentials credentials,
HttpRequest request)
|
Header |
authenticate(Credentials credentials,
HttpRequest request,
HttpContext context)
Produces an authorization string for the given set of
Credentials . |
(package private) GSSContext |
createGSSContext(GSSManager manager,
Oid oid,
GSSName serverName,
GSSCredential gssCredential) |
protected byte[] |
generateGSSToken(byte[] input,
Oid oid,
String authServer) |
protected byte[] |
generateGSSToken(byte[] input,
Oid oid,
String authServer,
Credentials credentials) |
protected byte[] |
generateToken(byte[] input,
String authServer)
Deprecated.
|
protected byte[] |
generateToken(byte[] input,
String authServer,
Credentials credentials) |
protected GSSManager |
getManager() |
boolean |
isComplete()
Authentication process may involve a series of challenge-response exchanges.
|
protected void |
parseChallenge(CharArrayBuffer buffer,
int beginIndex,
int endIndex) |
private String |
resolveCanonicalHostname(String host) |
getChallengeState, isProxy, processChallenge, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getParameter, getRealm, getSchemeName, isConnectionBased
private final org.apache.commons.logging.Log log
private final Base64 base64codec
private final boolean stripPort
private final boolean useCanonicalHostname
private GGSSchemeBase.State state
private byte[] token
GGSSchemeBase(boolean stripPort, boolean useCanonicalHostname)
GGSSchemeBase(boolean stripPort)
GGSSchemeBase()
protected GSSManager getManager()
protected byte[] generateGSSToken(byte[] input, Oid oid, String authServer) throws GSSException
GSSException
protected byte[] generateGSSToken(byte[] input, Oid oid, String authServer, Credentials credentials) throws GSSException
GSSException
GSSContext createGSSContext(GSSManager manager, Oid oid, GSSName serverName, GSSCredential gssCredential) throws GSSException
GSSException
@Deprecated protected byte[] generateToken(byte[] input, String authServer) throws GSSException
generateToken(byte[], String, org.apache.http.auth.Credentials)
.GSSException
protected byte[] generateToken(byte[] input, String authServer, Credentials credentials) throws GSSException
GSSException
public boolean isComplete()
AuthScheme
true
if the authentication process has been completed,
false
otherwise.@Deprecated public Header authenticate(Credentials credentials, HttpRequest request) throws AuthenticationException
ContextAwareAuthScheme.authenticate(
Credentials, HttpRequest, org.apache.http.protocol.HttpContext)
AuthScheme
Credentials
.credentials
- 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
ContextAwareAuthScheme
Credentials
.authenticate
in interface ContextAwareAuthScheme
authenticate
in class AuthSchemeBase
credentials
- The set of credentials to be used for athenticationrequest
- The request being authenticatedcontext
- HTTP contextAuthenticationException
- if authorization string cannot
be generated due to an authentication failureprotected void parseChallenge(CharArrayBuffer buffer, int beginIndex, int endIndex) throws MalformedChallengeException
parseChallenge
in class AuthSchemeBase
MalformedChallengeException
private String resolveCanonicalHostname(String host) throws UnknownHostException
UnknownHostException
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses