@Deprecated public abstract class GGSSchemeBase extends Object implements AuthScheme
GSS
based authentication schemes.Modifier and Type | Method and Description |
---|---|
protected GSSContext |
createGSSContext(GSSManager manager,
Oid oid,
GSSName serverName,
GSSCredential gssCredential)
Deprecated.
|
String |
generateAuthResponse(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
Generates an authorization response based on the current state.
|
protected byte[] |
generateGSSToken(byte[] input,
Oid oid,
String serviceName,
String authServer)
Deprecated.
|
protected abstract byte[] |
generateToken(byte[] input,
String serviceName,
String authServer)
Deprecated.
|
protected GSSManager |
getManager()
Deprecated.
|
Principal |
getPrincipal()
Deprecated.
Returns
Principal whose credentials are used to generate
an authentication response. |
String |
getRealm()
Deprecated.
Returns authentication realm.
|
boolean |
isChallengeComplete()
Deprecated.
Authentication process may involve a series of challenge-response exchanges.
|
boolean |
isResponseReady(org.apache.hc.core5.http.HttpHost host,
CredentialsProvider credentialsProvider,
org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
Determines whether or not an authorization response can be generated based on
the actual authentication state.
|
void |
processChallenge(AuthChallenge authChallenge,
org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
Processes the given auth challenge.
|
String |
toString()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, isConnectionBased
public String getRealm()
AuthScheme
null
.getRealm
in interface AuthScheme
public void processChallenge(AuthChallenge authChallenge, org.apache.hc.core5.http.protocol.HttpContext context) throws MalformedChallengeException
AuthScheme
processChallenge
in interface AuthScheme
authChallenge
- the auth challengecontext
- HTTP contextMalformedChallengeException
- in case the auth challenge is incomplete,
malformed or otherwise invalid.protected GSSManager getManager()
protected byte[] generateGSSToken(byte[] input, Oid oid, String serviceName, String authServer) throws GSSException
GSSException
protected GSSContext createGSSContext(GSSManager manager, Oid oid, GSSName serverName, GSSCredential gssCredential) throws GSSException
GSSException
protected abstract byte[] generateToken(byte[] input, String serviceName, String authServer) throws GSSException
GSSException
public boolean isChallengeComplete()
AuthScheme
isChallengeComplete
in interface AuthScheme
true
if the authentication process has been completed,
false
otherwise.public boolean isResponseReady(org.apache.hc.core5.http.HttpHost host, CredentialsProvider credentialsProvider, org.apache.hc.core5.http.protocol.HttpContext context) throws AuthenticationException
AuthScheme
isResponseReady
in interface AuthScheme
credentialsProvider
- The credentials to be used for authenticationcontext
- HTTP contexttrue
if an authorization response can be generated and
the authentication handshake can proceed, false
otherwise.AuthenticationException
- if authorization string cannot
be generated due to an authentication failurepublic Principal getPrincipal()
AuthScheme
Principal
whose credentials are used to generate
an authentication response. Connection based schemes are required
to return a user Principal
if authorization applies to
for the entire life span of connection.getPrincipal
in interface AuthScheme
AuthScheme.isConnectionBased()
public String generateAuthResponse(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) throws AuthenticationException
AuthScheme
CredentialsProvider
prior to this method call.generateAuthResponse
in interface AuthScheme
request
- The request being authenticatedcontext
- HTTP contextAuthenticationException
- if authorization string cannot
be generated due to an authentication failureAuthScheme.isResponseReady(HttpHost, CredentialsProvider, HttpContext)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.