private class HttpClientConnector.NegotiateAuthentication extends GssApiAuthentication<AuthenticationChallenge,java.lang.String> implements HttpClientConnector.HttpAuthenticationHandler
token
done, params, proxy
Constructor and Description |
---|
NegotiateAuthentication() |
Modifier and Type | Method and Description |
---|---|
protected org.ietf.jgss.GSSContext |
createContext()
Creates the
GSSContext 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.
|
close, process, start
isDone, setParams
public java.lang.String getName()
getName
in interface HttpClientConnector.HttpAuthenticationHandler
public java.lang.String getToken() throws java.lang.Exception
AuthenticationHandler
getToken
in interface AuthenticationHandler<AuthenticationChallenge,java.lang.String>
null
if there is nonejava.lang.Exception
- if an error occursprotected org.ietf.jgss.GSSContext createContext() throws java.lang.Exception
GssApiAuthentication
GSSContext
to use.createContext
in class GssApiAuthentication<AuthenticationChallenge,java.lang.String>
GSSContext
to usejava.lang.Exception
- if the context cannot be createdprotected byte[] extractToken(AuthenticationChallenge input) throws java.lang.Exception
GssApiAuthentication
extractToken
in class GssApiAuthentication<AuthenticationChallenge,java.lang.String>
input
- to extract the token fromnull
if nonejava.lang.Exception
- if an error occurs