Class HttpClientConnector.NegotiateAuthentication
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler<ParameterType,TokenType>
-
- org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication<AuthenticationChallenge,java.lang.String>
-
- org.eclipse.jgit.internal.transport.sshd.proxy.HttpClientConnector.NegotiateAuthentication
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,AuthenticationHandler<AuthenticationChallenge,java.lang.String>
,HttpClientConnector.HttpAuthenticationHandler
- Enclosing class:
- HttpClientConnector
private class HttpClientConnector.NegotiateAuthentication extends GssApiAuthentication<AuthenticationChallenge,java.lang.String> implements HttpClientConnector.HttpAuthenticationHandler
- See Also:
- RFC 4559
-
-
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 Constructor Description NegotiateAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.ietf.jgss.GSSContext
createContext()
Creates theGSSContext
to use.protected byte[]
extractToken(AuthenticationChallenge input)
Extracts the token from the last set parameters.java.lang.String
getName()
java.lang.String
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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceHttpClientConnector.HttpAuthenticationHandler
-
getToken
public java.lang.String getToken() throws java.lang.Exception
Description copied from interface:AuthenticationHandler
Retrieves the last token generated.- Specified by:
getToken
in interfaceAuthenticationHandler<AuthenticationChallenge,java.lang.String>
- Returns:
- the token, or
null
if there is none - Throws:
java.lang.Exception
- if an error occurs
-
createContext
protected org.ietf.jgss.GSSContext createContext() throws java.lang.Exception
Description copied from class:GssApiAuthentication
Creates theGSSContext
to use.- Specified by:
createContext
in classGssApiAuthentication<AuthenticationChallenge,java.lang.String>
- Returns:
- a fresh
GSSContext
to use - Throws:
java.lang.Exception
- if the context cannot be created
-
extractToken
protected byte[] extractToken(AuthenticationChallenge input) throws java.lang.Exception
Description copied from class:GssApiAuthentication
Extracts the token from the last set parameters.- Specified by:
extractToken
in classGssApiAuthentication<AuthenticationChallenge,java.lang.String>
- Parameters:
input
- to extract the token from- Returns:
- the extracted token, or
null
if none - Throws:
java.lang.Exception
- if an error occurs
-
-