Class AbstractAuthenticationHandler<ParameterType,TokenType>
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler<ParameterType,TokenType>
- Type Parameters:
ParameterType
- defining the parameter type for the authenticationTokenType
- defining the token type for the authentication
- All Implemented Interfaces:
Closeable
,AutoCloseable
,AuthenticationHandler<ParameterType,
TokenType>
- Direct Known Subclasses:
BasicAuthentication
,GssApiAuthentication
public abstract class AbstractAuthenticationHandler<ParameterType,TokenType>
extends Object
implements AuthenticationHandler<ParameterType,TokenType>
Abstract base class for
AuthenticationHandler
s encapsulating basic
common things.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
A flag telling whether this authentication is done.protected ParameterType
The last set parameters.protected InetSocketAddress
TheInetSocketAddress
or the proxy to connect to. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newAbstractAuthenticationHandler
to authenticate with the givenproxy
. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
isDone()
Tells whether is authentication mechanism is done (successfully or unsuccessfully).final void
setParams
(ParameterType input) Sets the parameters for the next token generation viaAuthenticationHandler.start()
orAuthenticationHandler.process()
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jgit.internal.transport.sshd.auth.AuthenticationHandler
close, getToken, process, start
-
Field Details
-
proxy
TheInetSocketAddress
or the proxy to connect to. -
params
The last set parameters. -
done
protected boolean doneA flag telling whether this authentication is done.
-
-
Constructor Details
-
AbstractAuthenticationHandler
Creates a newAbstractAuthenticationHandler
to authenticate with the givenproxy
.- Parameters:
proxy
- theInetSocketAddress
of the proxy to connect to
-
-
Method Details
-
setParams
Description copied from interface:AuthenticationHandler
Sets the parameters for the next token generation viaAuthenticationHandler.start()
orAuthenticationHandler.process()
.- Specified by:
setParams
in interfaceAuthenticationHandler<ParameterType,
TokenType> - Parameters:
input
- to set, may benull
-
isDone
public final boolean isDone()Description copied from interface:AuthenticationHandler
Tells whether is authentication mechanism is done (successfully or unsuccessfully).- Specified by:
isDone
in interfaceAuthenticationHandler<ParameterType,
TokenType> - Returns:
- whether this authentication is done
-