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 |
signalIdentitySkipped(ClientSession session,
String service,
KeyPair identity)
A
KeyPair is is present, but is not attempted because no signature factory for it could be found. |
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 ClientSession
service
- The requesting service nameidentity
- The KeyPair
identity being attempted - Note: for agent based authentications the
private key may be null
signature
- 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 ClientSession
service
- The requesting service nameException
- If failed to handle the callback - Note: may cause session closedefault void signalIdentitySkipped(ClientSession session, String service, KeyPair identity) throws Exception
KeyPair
is is present, but is not attempted because no signature factory for it could be found.session
- The ClientSession
service
- The requesting service nameidentity
- The KeyPair
identity being skipped - Note: for agent based authentications the
private key may be null
Exception
default void signalSignatureAttempt(ClientSession session, String service, KeyPair identity, String signature, byte[] signed) throws Exception
session
- The ClientSession
service
- The requesting service nameidentity
- The KeyPair
identity being attempted - Note: for agent based authentications the
private key may be null
signature
- 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 ClientSession
service
- The requesting service nameidentity
- The KeyPair
identity being attempted - Note: for agent based authentications the
private key may be null
Exception
- 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 ClientSession
service
- The requesting service nameidentity
- The KeyPair
identity being attempted - Note: for agent based authentications
the private key may be null
partial
- 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.