Class AbstractAuthenticationHandler<P,T>
java.lang.Object
org.apache.sshd.client.session.proxy.AbstractAuthenticationHandler<P,T>
- Type Parameters:
P- defining the parameter type for the authenticationT- defining the token type for the authentication
- All Implemented Interfaces:
Closeable, AutoCloseable, AuthenticationHandler<P,T>
- Direct Known Subclasses:
BasicAuthentication, GssApiAuthentication
public abstract class AbstractAuthenticationHandler<P,T>
extends Object
implements AuthenticationHandler<P,T>
Abstract base class for
AuthenticationHandlers encapsulating basic common things.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanA flag telling whether this authentication is done.protected PThe last set parameters.protected InetSocketAddressTheInetSocketAddressof the proxy to connect to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a newAbstractAuthenticationHandlerto authenticate with the givenproxy. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanisDone()Tells whether is authentication mechanism is done (successfully or unsuccessfully).final voidSets the parameters for the next token generation viaAuthenticationHandler.start()orAuthenticationHandler.process().Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuthenticationHandler
close, getToken, process, start
-
Field Details
-
proxy
TheInetSocketAddressof 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<P,T> - 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<P,T> - Returns:
- whether this authentication is done
-