public interface PublicKeyAuthenticationReporter
| Modifier and Type | Method and Description |
|---|---|
default void |
signalAuthenticationAttempt(ClientSession session,
String service,
KeyPair identity,
String signature)
Sending the initial request to use public key authentication
|
default void |
signalAuthenticationExhausted(ClientSession session,
String service)
Signals end of public key attempts and optionally switching to other authentication methods.
|
default void |
signalAuthenticationFailure(ClientSession session,
String service,
KeyPair identity,
boolean partial,
List<String> serverMethods) |
default void |
signalAuthenticationSuccess(ClientSession session,
String service,
KeyPair identity) |
default void |
signalSignatureAttempt(ClientSession session,
String service,
KeyPair identity,
String signature,
byte[] signed)
Sending the signed response to the server's challenge
|
default void signalAuthenticationAttempt(ClientSession session, String service, KeyPair identity, String signature) throws Exception
session - The ClientSessionservice - The requesting service nameidentity - The KeyPair identity being attempted - Note: for agent based authentications the
private key may be nullsignature - The type of signature that is being usedException - If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationExhausted(ClientSession session, String service) throws Exception
signalAuthenticationSuccess nor
signalAuthenticationFailure
are invoked.session - The ClientSessionservice - The requesting service nameException - If failed to handle the callback - Note: may cause session closedefault void signalSignatureAttempt(ClientSession session, String service, KeyPair identity, String signature, byte[] signed) throws Exception
session - The ClientSessionservice - The requesting service nameidentity - The KeyPair identity being attempted - Note: for agent based authentications the
private key may be nullsignature - The type of signature that is being usedsigned - The generated signature dataException - If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationSuccess(ClientSession session, String service, KeyPair identity) throws Exception
session - The ClientSessionservice - The requesting service nameidentity - The KeyPair identity being attempted - Note: for agent based authentications the
private key may be nullException - If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationFailure(ClientSession session, String service, KeyPair identity, boolean partial, List<String> serverMethods) throws Exception
session - The ClientSessionservice - The requesting service nameidentity - The KeyPair identity being attempted - Note: for agent based authentications
the private key may be nullpartial - 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–2021 The Apache Software Foundation. All rights reserved.