public interface PublicKeyAuthenticationReporter
| Modifier and Type | Method and Description |
|---|---|
default void |
signalAuthenticationAttempt(ClientSession session,
java.lang.String service,
java.security.KeyPair identity,
java.lang.String signature)
Sending the initial request to use public key authentication
|
default void |
signalAuthenticationExhausted(ClientSession session,
java.lang.String service)
Signals end of public key attempts and optionally switching to other authentication methods.
|
default void |
signalAuthenticationFailure(ClientSession session,
java.lang.String service,
java.security.KeyPair identity,
boolean partial,
java.util.List<java.lang.String> serverMethods) |
default void |
signalAuthenticationSuccess(ClientSession session,
java.lang.String service,
java.security.KeyPair identity) |
default void |
signalIdentitySkipped(ClientSession session,
java.lang.String service,
java.security.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,
java.lang.String service,
java.security.KeyPair identity,
java.lang.String signature,
byte[] signed)
Sending the signed response to the server's challenge
|
default void signalAuthenticationAttempt(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String signature) throws java.lang.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 usedjava.lang.Exception - If failed to handle the callback - Note: may cause session closedefault void signalAuthenticationExhausted(ClientSession session, java.lang.String service) throws java.lang.Exception
signalAuthenticationSuccess nor
signalAuthenticationFailure
are invoked.session - The ClientSessionservice - The requesting service namejava.lang.Exception - If failed to handle the callback - Note: may cause session closedefault void signalIdentitySkipped(ClientSession session, java.lang.String service, java.security.KeyPair identity) throws java.lang.Exception
KeyPair is is present, but is not attempted because no signature factory for it could be found.session - The ClientSessionservice - The requesting service nameidentity - The KeyPair identity being skipped - Note: for agent based authentications the
private key may be nulljava.lang.Exceptiondefault void signalSignatureAttempt(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String signature, byte[] signed) throws java.lang.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 datajava.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) throws java.lang.Exception
session - The ClientSessionservice - The requesting service nameidentity - The KeyPair identity being attempted - Note: for agent based authentications the
private key may be nulljava.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, boolean partial, java.util.List<java.lang.String> serverMethods) throws java.lang.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 continuejava.lang.Exception - If failed to handle the callback - Note: may cause session close