ParameterType - defining the parameter type for the authenticationTokenType - defining the token type for the authenticationpublic abstract class AbstractAuthenticationHandler<ParameterType,TokenType> extends Object implements AuthenticationHandler<ParameterType,TokenType>
AuthenticationHandlers encapsulating basic
common things.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
done
A flag telling whether this authentication is done.
|
protected ParameterType |
params
The last set parameters.
|
protected InetSocketAddress |
proxy
The
InetSocketAddress or the proxy to connect to. |
| Constructor and Description |
|---|
AbstractAuthenticationHandler(InetSocketAddress proxy)
Creates a new
AbstractAuthenticationHandler to authenticate with
the given proxy. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDone()
Tells whether is authentication mechanism is done (successfully or
unsuccessfully).
|
void |
setParams(ParameterType input)
Sets the parameters for the next token generation via
AuthenticationHandler.start() or
AuthenticationHandler.process(). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getToken, process, startprotected InetSocketAddress proxy
InetSocketAddress or the proxy to connect to.protected ParameterType params
protected boolean done
public AbstractAuthenticationHandler(InetSocketAddress proxy)
AbstractAuthenticationHandler to authenticate with
the given proxy.proxy - the InetSocketAddress of the proxy to connect topublic final void setParams(ParameterType input)
AuthenticationHandlerAuthenticationHandler.start() or
AuthenticationHandler.process().setParams in interface AuthenticationHandler<ParameterType,TokenType>input - to set, may be nullpublic final boolean isDone()
AuthenticationHandlerisDone in interface AuthenticationHandler<ParameterType,TokenType>Copyright © 2020 Eclipse JGit Project. All rights reserved.