Interface GssApiWithMicAuthenticationReporter
-
public interface GssApiWithMicAuthenticationReporter
Callback interface for recording authentication state inGssApiWithMicAuthentication
.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.sshd.common.AttributeRepository.AttributeKey<GssApiWithMicAuthenticationReporter>
GSS_AUTHENTICATION_REPORTER
AnAttributeRepository.AttributeKey
for aClientSession
holding theGssApiWithMicAuthenticationReporter
.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
signalAuthenticationAttempt(org.apache.sshd.client.session.ClientSession session, String service, String mechanism)
Called when a new authentication attempt is made.default void
signalAuthenticationExhausted(org.apache.sshd.client.session.ClientSession session, String service)
Called when there are no more mechanisms to try.default void
signalAuthenticationFailure(org.apache.sshd.client.session.ClientSession session, String service, String mechanism, boolean partial, List<String> serverMethods)
Called when the authentication was not successful.default void
signalAuthenticationSuccess(org.apache.sshd.client.session.ClientSession session, String service, String mechanism)
Called when authentication was succeessful.
-
-
-
Field Detail
-
GSS_AUTHENTICATION_REPORTER
static final org.apache.sshd.common.AttributeRepository.AttributeKey<GssApiWithMicAuthenticationReporter> GSS_AUTHENTICATION_REPORTER
AnAttributeRepository.AttributeKey
for aClientSession
holding theGssApiWithMicAuthenticationReporter
.
-
-
Method Detail
-
signalAuthenticationAttempt
default void signalAuthenticationAttempt(org.apache.sshd.client.session.ClientSession session, String service, String mechanism)
Called when a new authentication attempt is made.- Parameters:
session
- theClientSession
service
- the name of the requesting SSH service namemechanism
- the OID of the mechanism used
-
signalAuthenticationExhausted
default void signalAuthenticationExhausted(org.apache.sshd.client.session.ClientSession session, String service)
Called when there are no more mechanisms to try.- Parameters:
session
- theClientSession
service
- the name of the requesting SSH service name
-
signalAuthenticationSuccess
default void signalAuthenticationSuccess(org.apache.sshd.client.session.ClientSession session, String service, String mechanism)
Called when authentication was succeessful.- Parameters:
session
- theClientSession
service
- the name of the requesting SSH service namemechanism
- the OID of the mechanism used
-
signalAuthenticationFailure
default void signalAuthenticationFailure(org.apache.sshd.client.session.ClientSession session, String service, String mechanism, boolean partial, List<String> serverMethods)
Called when the authentication was not successful.- Parameters:
session
- theClientSession
service
- the name of the requesting SSH service namemechanism
- the OID of the mechanism usedpartial
-true
if authentication was partially successful, meaning one continues with additional authentication methods given byserverMethods
serverMethods
- theList
of authentication methods that can continue
-
-