Interface HostBasedAuthenticationReporter
public interface HostBasedAuthenticationReporter
Provides report about the client side host-based authentication progress
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsignalAuthenticationAttempt(ClientSession session, String service, KeyPair identity, String hostname, String username, byte[] signature) Sending the initial request to use host based authenticationdefault voidsignalAuthenticationExhausted(ClientSession session, String service, String hostname, String username) Signals end of host based attempts and optionally switching to other authentication methods.default voidsignalAuthenticationFailure(ClientSession session, String service, KeyPair identity, String hostname, String username, boolean partial, List<String> serverMethods) default voidsignalAuthenticationSuccess(ClientSession session, String service, KeyPair identity, String hostname, String username)
-
Method Details
-
signalAuthenticationAttempt
default void signalAuthenticationAttempt(ClientSession session, String service, KeyPair identity, String hostname, String username, byte[] signature) throws Exception Sending the initial request to use host based authentication- Parameters:
session- TheClientSessionservice- The requesting service nameidentity- TheKeyPairidentity being attemptedhostname- The host name value sent to the serverusername- The username value sent to the serversignature- The signature data that is being sent to the server- Throws:
Exception- If failed to handle the callback - Note: may cause session close
-
signalAuthenticationExhausted
default void signalAuthenticationExhausted(ClientSession session, String service, String hostname, String username) throws Exception Signals end of host based attempts and optionally switching to other authentication methods. Note: neithersignalAuthenticationSuccessnorsignalAuthenticationFailureare invoked.- Parameters:
session- TheClientSessionservice- The requesting service namehostname- The host name value sent to the serverusername- The username value sent to the server- Throws:
Exception- If failed to handle the callback - Note: may cause session close
-
signalAuthenticationSuccess
default void signalAuthenticationSuccess(ClientSession session, String service, KeyPair identity, String hostname, String username) throws Exception - Parameters:
session- TheClientSessionservice- The requesting service nameidentity- TheKeyPairidentity being attemptedhostname- The host name value sent to the serverusername- The username value sent to the server- Throws:
Exception- If failed to handle the callback - Note: may cause session close
-
signalAuthenticationFailure
default void signalAuthenticationFailure(ClientSession session, String service, KeyPair identity, String hostname, String username, boolean partial, List<String> serverMethods) throws Exception - Parameters:
session- TheClientSessionservice- The requesting service nameidentity- TheKeyPairidentity being attemptedhostname- The host name value sent to the serverusername- The username value sent to the serverpartial-trueif some partial authentication success so farserverMethods- TheListof authentication methods that can continue- Throws:
Exception- If failed to handle the callback - Note: may cause session close
-