ParameterType
- defining the parameter type for the authenticationTokenType
- defining the token type for the authenticationpublic abstract class GssApiAuthentication<ParameterType,TokenType> extends AbstractAuthenticationHandler<ParameterType,TokenType>
Modifier and Type | Field and Description |
---|---|
protected byte[] |
token
The last token generated.
|
done, params, proxy
Constructor and Description |
---|
GssApiAuthentication(InetSocketAddress proxy)
Creates a new
GssApiAuthentication to authenticate with the given
proxy . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract GSSContext |
createContext()
Creates the
GSSContext to use. |
protected abstract byte[] |
extractToken(ParameterType input)
Extracts the token from the last set parameters.
|
void |
process()
Produces the next authentication token, if any.
|
void |
start()
Produces the initial authentication token that can be then retrieved via
AuthenticationHandler.getToken() . |
isDone, setParams
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getToken
public GssApiAuthentication(InetSocketAddress proxy)
GssApiAuthentication
to authenticate with the given
proxy
.proxy
- the InetSocketAddress
of the proxy to connect topublic void close()
public final void start() throws Exception
AuthenticationHandler
AuthenticationHandler.getToken()
.Exception
- if an error occurspublic final void process() throws Exception
AuthenticationHandler
Exception
- if an error occursprotected abstract GSSContext createContext() throws Exception
GSSContext
to use.GSSContext
to useException
- if the context cannot be createdprotected abstract byte[] extractToken(ParameterType input) throws Exception
input
- to extract the token fromnull
if noneException
- if an error occursCopyright © 2019 Eclipse JGit Project. All rights reserved.