@Deprecated public abstract class GGSSchemeBase extends Object implements AuthScheme
GSS based authentication schemes.| 限定符和类型 | 方法和说明 |
|---|---|
protected GSSContext |
createGSSContext(GSSManager manager,
Oid oid,
GSSName serverName,
GSSCredential gssCredential)
已过时。
|
String |
generateAuthResponse(HttpHost host,
HttpRequest request,
HttpContext context)
已过时。
Generates an authorization response based on the current state.
|
protected byte[] |
generateGSSToken(byte[] input,
Oid oid,
String serviceName,
String authServer)
已过时。
|
protected abstract byte[] |
generateToken(byte[] input,
String serviceName,
String authServer)
已过时。
|
protected GSSManager |
getManager()
已过时。
|
Principal |
getPrincipal()
已过时。
Returns
Principal whose credentials are used to generate
an authentication response. |
String |
getRealm()
已过时。
Returns authentication realm.
|
boolean |
isChallengeComplete()
已过时。
Authentication process may involve a series of challenge-response exchanges.
|
boolean |
isResponseReady(HttpHost host,
CredentialsProvider credentialsProvider,
HttpContext context)
已过时。
Determines whether or not an authorization response can be generated based on
the actual authentication state.
|
void |
processChallenge(AuthChallenge authChallenge,
HttpContext context)
已过时。
Processes the given auth challenge.
|
String |
toString()
已过时。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, isConnectionBasedpublic String getRealm()
AuthSchemenull.getRealm 在接口中 AuthSchemepublic void processChallenge(AuthChallenge authChallenge, HttpContext context) throws MalformedChallengeException
AuthSchemeprocessChallenge 在接口中 AuthSchemeauthChallenge - 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
GSSExceptionprotected GSSContext createGSSContext(GSSManager manager, Oid oid, GSSName serverName, GSSCredential gssCredential) throws GSSException
GSSExceptionprotected abstract byte[] generateToken(byte[] input,
String serviceName,
String authServer)
throws GSSException
GSSExceptionpublic boolean isChallengeComplete()
AuthSchemeisChallengeComplete 在接口中 AuthSchemetrue if the authentication process has been completed,
false otherwise.public boolean isResponseReady(HttpHost host, CredentialsProvider credentialsProvider, HttpContext context) throws AuthenticationException
AuthSchemeisResponseReady 在接口中 AuthSchemecredentialsProvider - 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()
AuthSchemePrincipal 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 在接口中 AuthSchemeAuthScheme.isConnectionBased()public String generateAuthResponse(HttpHost host, HttpRequest request, HttpContext context) throws AuthenticationException
AuthSchemeCredentialsProvider prior to this method call.generateAuthResponse 在接口中 AuthSchemerequest - The request being authenticatedcontext - HTTP contextAuthenticationException - if authorization string cannot
be generated due to an authentication failureAuthScheme.isResponseReady(HttpHost, CredentialsProvider, HttpContext)Copyright © 2023. All rights reserved.