Class HttpClientConnector.NegotiateAuthentication
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler<AuthenticationChallenge, String>
org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication<AuthenticationChallenge, String>
org.eclipse.jgit.internal.transport.sshd.proxy.HttpClientConnector.NegotiateAuthentication
- All Implemented Interfaces:
Closeable, AutoCloseable, AuthenticationHandler<AuthenticationChallenge, String>, HttpClientConnector.HttpAuthenticationHandler
- Enclosing class:
HttpClientConnector
private class HttpClientConnector.NegotiateAuthentication
extends GssApiAuthentication<AuthenticationChallenge, String>
implements HttpClientConnector.HttpAuthenticationHandler
- See Also:
-
Field Summary
Fields inherited from class GssApiAuthentication
tokenFields inherited from class AbstractAuthenticationHandler
done, params, proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GSSContextCreates theGSSContextto use.protected byte[]Extracts the token from the last set parameters.getName()getToken()Retrieves the last token generated.Methods inherited from class GssApiAuthentication
close, process, startMethods inherited from class AbstractAuthenticationHandler
isDone, setParams
-
Constructor Details
-
NegotiateAuthentication
public NegotiateAuthentication()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceHttpClientConnector.HttpAuthenticationHandler
-
getToken
Description copied from interface:AuthenticationHandlerRetrieves the last token generated.- Specified by:
getTokenin interfaceAuthenticationHandler<AuthenticationChallenge, String>- Returns:
- the token, or
nullif there is none - Throws:
Exception- if an error occurs
-
createContext
Description copied from class:GssApiAuthenticationCreates theGSSContextto use.- Specified by:
createContextin classGssApiAuthentication<AuthenticationChallenge, String>- Returns:
- a fresh
GSSContextto use - Throws:
Exception- if the context cannot be created
-
extractToken
Description copied from class:GssApiAuthenticationExtracts the token from the last set parameters.- Specified by:
extractTokenin classGssApiAuthentication<AuthenticationChallenge, String>- Parameters:
input- to extract the token from- Returns:
- the extracted token, or
nullif none - Throws:
Exception- if an error occurs
-