public interface HostBasedAuthenticationReporter
Modifier and Type | Method and Description |
---|---|
default void |
signalAuthenticationAttempt(ClientSession session,
java.lang.String service,
java.security.KeyPair identity,
java.lang.String hostname,
java.lang.String username,
byte[] signature)
Sending the initial request to use host based authentication
|
default void |
signalAuthenticationExhausted(ClientSession session,
java.lang.String service,
java.lang.String hostname,
java.lang.String username)
Signals end of host based attempts and optionally switching to other authentication methods.
|
default void |
signalAuthenticationFailure(ClientSession session,
java.lang.String service,
java.security.KeyPair identity,
java.lang.String hostname,
java.lang.String username,
boolean partial,
java.util.List<java.lang.String> serverMethods) |
default void |
signalAuthenticationSuccess(ClientSession session,
java.lang.String service,
java.security.KeyPair identity,
java.lang.String hostname,
java.lang.String username) |
default void signalAuthenticationAttempt(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String hostname, java.lang.String username, byte[] signature) throws java.lang.Exception
session
- The ClientSession
service
- The requesting service nameidentity
- The KeyPair
identity 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 serverjava.lang.Exception
- If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationExhausted(ClientSession session, java.lang.String service, java.lang.String hostname, java.lang.String username) throws java.lang.Exception
signalAuthenticationSuccess
nor signalAuthenticationFailure
are invoked.session
- The ClientSession
service
- The requesting service namehostname
- The host name value sent to the serverusername
- The username value sent to the serverjava.lang.Exception
- If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationSuccess(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String hostname, java.lang.String username) throws java.lang.Exception
session
- The ClientSession
service
- The requesting service nameidentity
- The KeyPair
identity being attemptedhostname
- The host name value sent to the serverusername
- The username value sent to the serverjava.lang.Exception
- If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationFailure(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String hostname, java.lang.String username, boolean partial, java.util.List<java.lang.String> serverMethods) throws java.lang.Exception
session
- The ClientSession
service
- The requesting service nameidentity
- The KeyPair
identity being attemptedhostname
- The host name value sent to the serverusername
- The username value sent to the serverpartial
- true
if some partial authentication success so farserverMethods
- The List
of authentication methods that can continuejava.lang.Exception
- If failed to handle the callback - Note: may cause session close