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
AuthenticationHandlers encapsulating basic
common things.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanA flag telling whether this authentication is done.protected ParameterTypeThe last set parameters.protected InetSocketAddressTheInetSocketAddressor the proxy to connect to. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newAbstractAuthenticationHandlerto authenticate with the givenproxy. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanisDone()Tells whether is authentication mechanism is done (successfully or unsuccessfully).final voidsetParams(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, waitMethods inherited from interface org.eclipse.jgit.internal.transport.sshd.auth.AuthenticationHandler
close, getToken, process, start
-
Field Details
-
proxy
TheInetSocketAddressor 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 newAbstractAuthenticationHandlerto authenticate with the givenproxy.- Parameters:
proxy- theInetSocketAddressof the proxy to connect to
-
-
Method Details
-
setParams
Description copied from interface:AuthenticationHandlerSets the parameters for the next token generation viaAuthenticationHandler.start()orAuthenticationHandler.process().- Specified by:
setParamsin interfaceAuthenticationHandler<ParameterType,TokenType> - Parameters:
input- to set, may benull
-
isDone
public final boolean isDone()Description copied from interface:AuthenticationHandlerTells whether is authentication mechanism is done (successfully or unsuccessfully).- Specified by:
isDonein interfaceAuthenticationHandler<ParameterType,TokenType> - Returns:
- whether this authentication is done
-