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

public abstract Class GssApiAuthentication<ParameterType, TokenType>

extends AbstractAuthenticationHandler<ParameterType, TokenType>
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.internal.transport.sshd.proxy.HttpClientConnector.NegotiateAuthentication, org.eclipse.jgit.internal.transport.sshd.proxy.Socks5ClientConnector.SocksGssApiAuthentication
Type Parameters
<ParameterType>
defining the parameter type for the authentication
<TokenType>
defining the token type for the authentication
Static Imports
java.text.MessageFormat.format

An abstract implementation of a GSS-API multi-round authentication.

Field Summary

Modifier and TypeField and Description
private GSSContext
protected byte[]
token

The last token generated.

Inherited from org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler:
doneparamsproxy

Constructor Summary

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

Creates a new GssApiAuthentication to authenticate with the given proxy.

Method Summary

Modifier and TypeMethod and Description
private void
public void
close()

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

Closes this stream and releases any system resources associated with it.

protected abstract GSSContext

Returns:

a fresh GSSContext to use
createContext
()

Creates the GSSContext to use.

protected abstract byte[]

Returns:

the extracted token, or null if none
extractToken
(ParameterType
to extract the token from
input
)

Extracts the token from the last set parameters.

public final void
process()

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

Produces the next authentication token, if any.

public final void
start()

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

Produces the initial authentication token that can be then retrieved via getToken().

Inherited from org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler:
isDonesetParams

Field Detail

contextback to summary
private GSSContext context
tokenback to summary
protected byte[] token

The last token generated.

Constructor Detail

GssApiAuthenticationback to summary
public GssApiAuthentication(InetSocketAddress proxy)

Creates a new GssApiAuthentication to authenticate with the given proxy.

Parameters
proxy:InetSocketAddress

the InetSocketAddress of the proxy to connect to

Method Detail

checkDoneback to summary
private void checkDone() throws Exception
closeback to summary
public void close()

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

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
createContextback to summary
protected abstract GSSContext createContext() throws Exception

Creates the GSSContext to use.

Returns:GSSContext

a fresh GSSContext to use

Exceptions
Exception:
if the context cannot be created
extractTokenback to summary
protected abstract byte[] extractToken(ParameterType input) throws Exception

Extracts the token from the last set parameters.

Parameters
input:ParameterType

to extract the token from

Returns:byte[]

the extracted token, or null if none

Exceptions
Exception:
if an error occurs
processback to summary
public final void process() throws Exception

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

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

Produces the next authentication token, if any.

Annotations
@Override
Exceptions
Exception:
if an error occurs
startback to summary
public final void start() throws Exception

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

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

Produces the initial authentication token that can be then retrieved via getToken().

Annotations
@Override
Exceptions
Exception:
if an error occurs