Top Description Fields Constructors Methods
org.eclipse.jgit.internal.transport.sshd.auth

public abstract Class AbstractAuthenticationHandler<ParameterType, TokenType>

extends Object
implements AuthenticationHandler<ParameterType, TokenType>
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.internal.transport.sshd.auth.AuthenticationHandler, java.io.Closeable, java.lang.AutoCloseable
Known Direct Subclasses
org.eclipse.jgit.internal.transport.sshd.auth.BasicAuthentication, org.eclipse.jgit.internal.transport.sshd.auth.GssApiAuthentication
Type Parameters
<ParameterType>
defining the parameter type for the authentication
<TokenType>
defining the token type for the authentication
Imports
java.net.InetSocketAddress

Abstract base class for AuthenticationHandlers encapsulating basic common things.

Field Summary

Modifier and TypeField 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 Summary

AccessConstructor and Description
public
AbstractAuthenticationHandler(InetSocketAddress
the InetSocketAddress of the proxy to connect to
proxy
)

Creates a new AbstractAuthenticationHandler to authenticate with the given proxy.

Method Summary

Modifier and TypeMethod and Description
public final boolean
isDone()

Implements org.eclipse.jgit.internal.transport.sshd.auth.AuthenticationHandler.isDone.

Tells whether is authentication mechanism is done (successfully or unsuccessfully).

public final void
setParams(ParameterType
to set, may be null
input
)

Implements org.eclipse.jgit.internal.transport.sshd.auth.AuthenticationHandler.setParams.

Sets the parameters for the next token generation via start() or process().

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

doneback to summary
protected boolean done

A flag telling whether this authentication is done.

paramsback to summary
protected ParameterType params

The last set parameters.

proxyback to summary
protected InetSocketAddress proxy

The InetSocketAddress or the proxy to connect to.

Constructor Detail

AbstractAuthenticationHandlerback to summary
public AbstractAuthenticationHandler(InetSocketAddress proxy)

Creates a new AbstractAuthenticationHandler to authenticate with the given proxy.

Parameters
proxy:InetSocketAddress

the InetSocketAddress of the proxy to connect to

Method Detail

isDoneback to summary
public final boolean isDone()

Implements org.eclipse.jgit.internal.transport.sshd.auth.AuthenticationHandler.isDone.

Doc from org.eclipse.jgit.internal.transport.sshd.auth.AuthenticationHandler.isDone.

Tells whether is authentication mechanism is done (successfully or unsuccessfully).

Returns:boolean

whether this authentication is done

Annotations
@Override
setParamsback to summary
public final void setParams(ParameterType input)

Implements org.eclipse.jgit.internal.transport.sshd.auth.AuthenticationHandler.setParams.

Doc from org.eclipse.jgit.internal.transport.sshd.auth.AuthenticationHandler.setParams.

Sets the parameters for the next token generation via start() or process().

Parameters
input:ParameterType

to set, may be null

Annotations
@Override