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 org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication
token
Fields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
done, params, proxy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GSSContext
Creates theGSSContext
to use.protected byte[]
Extracts the token from the last set parameters.getName()
getToken()
Retrieves the last token generated.Methods inherited from class org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication
close, process, start
Methods inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
isDone, setParams
-
Constructor Details
-
NegotiateAuthentication
public NegotiateAuthentication()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceHttpClientConnector.HttpAuthenticationHandler
-
getToken
Description copied from interface:AuthenticationHandler
Retrieves the last token generated.- Specified by:
getToken
in interfaceAuthenticationHandler<AuthenticationChallenge,
String> - Returns:
- the token, or
null
if there is none - Throws:
Exception
- if an error occurs
-
createContext
Description copied from class:GssApiAuthentication
Creates theGSSContext
to use.- Specified by:
createContext
in classGssApiAuthentication<AuthenticationChallenge,
String> - Returns:
- a fresh
GSSContext
to use - Throws:
Exception
- if the context cannot be created
-
extractToken
Description copied from class:GssApiAuthentication
Extracts the token from the last set parameters.- Specified by:
extractToken
in classGssApiAuthentication<AuthenticationChallenge,
String> - Parameters:
input
- to extract the token from- Returns:
- the extracted token, or
null
if none - Throws:
Exception
- if an error occurs
-