public interface HostBasedAuthenticationReporter
Modifier and Type | Method and Description |
---|---|
default void |
signalAuthenticationAttempt(ClientSession session,
String service,
KeyPair identity,
String hostname,
String username,
byte[] signature)
Sending the initial request to use host based authentication
|
default void |
signalAuthenticationExhausted(ClientSession session,
String service,
String hostname,
String username)
Signals end of host based attempts and optionally switching to other authentication methods.
|
default void |
signalAuthenticationFailure(ClientSession session,
String service,
KeyPair identity,
String hostname,
String username,
boolean partial,
List<String> serverMethods) |
default void |
signalAuthenticationSuccess(ClientSession session,
String service,
KeyPair identity,
String hostname,
String username) |
default void signalAuthenticationAttempt(ClientSession session, String service, KeyPair identity, String hostname, String username, byte[] signature) throws 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 serverException
- If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationExhausted(ClientSession session, String service, String hostname, String username) throws 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 serverException
- If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationSuccess(ClientSession session, String service, KeyPair identity, String hostname, String username) throws 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 serverException
- If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationFailure(ClientSession session, String service, KeyPair identity, String hostname, String username, boolean partial, List<String> serverMethods) throws 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 continueException
- If failed to handle the callback - Note: may cause session closeCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.