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

public Interface GssApiWithMicAuthenticationReporter

Imports
java.util.List, org.apache.sshd.client.session.ClientSession, org.apache.sshd.common.AttributeRepository.AttributeKey

Callback interface for recording authentication state in GssApiWithMicAuthentication.

Field Summary

Modifier and TypeField and Description
public static final AttributeRepository.AttributeKey<GssApiWithMicAuthenticationReporter>

Method Summary

Modifier and TypeMethod and Description
public default void
signalAuthenticationAttempt(ClientSession session, String
the name of the requesting SSH service name
service
,
String
the OID of the mechanism used
mechanism
)

Called when a new authentication attempt is made.

public default void
signalAuthenticationExhausted(ClientSession session, String
the name of the requesting SSH service name
service
)

Called when there are no more mechanisms to try.

public default void
signalAuthenticationFailure(ClientSession session, String
the name of the requesting SSH service name
service
,
String
the OID of the mechanism used
mechanism
,
boolean
true if authentication was partially successful, meaning one continues with additional authentication methods given by serverMethods
partial
,
List<String>
the List of authentication methods that can continue
serverMethods
)

Called when the authentication was not successful.

public default void
signalAuthenticationSuccess(ClientSession session, String
the name of the requesting SSH service name
service
,
String
the OID of the mechanism used
mechanism
)

Called when authentication was succeessful.

Field Detail

GSS_AUTHENTICATION_REPORTERback to summary
public static final AttributeRepository.AttributeKey<GssApiWithMicAuthenticationReporter> GSS_AUTHENTICATION_REPORTER

An AttributeKey for a ClientSession holding the GssApiWithMicAuthenticationReporter.

Method Detail

signalAuthenticationAttemptback to summary
public default void signalAuthenticationAttempt(ClientSession session, String service, String mechanism)

Called when a new authentication attempt is made.

Parameters
session:ClientSession

the ClientSession

service:String

the name of the requesting SSH service name

mechanism:String

the OID of the mechanism used

signalAuthenticationExhaustedback to summary
public default void signalAuthenticationExhausted(ClientSession session, String service)

Called when there are no more mechanisms to try.

Parameters
session:ClientSession

the ClientSession

service:String

the name of the requesting SSH service name

signalAuthenticationFailureback to summary
public default void signalAuthenticationFailure(ClientSession session, String service, String mechanism, boolean partial, List<String> serverMethods)

Called when the authentication was not successful.

Parameters
session:ClientSession

the ClientSession

service:String

the name of the requesting SSH service name

mechanism:String

the OID of the mechanism used

partial:boolean

true if authentication was partially successful, meaning one continues with additional authentication methods given by serverMethods

serverMethods:List<String>

the List of authentication methods that can continue

signalAuthenticationSuccessback to summary
public default void signalAuthenticationSuccess(ClientSession session, String service, String mechanism)

Called when authentication was succeessful.

Parameters
session:ClientSession

the ClientSession

service:String

the name of the requesting SSH service name

mechanism:String

the OID of the mechanism used