Interface PublicKeyAuthenticationReporter
-
public interface PublicKeyAuthenticationReporterProvides report about the client side public key authentication progress- See Also:
- RFC-4252 section 7
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidsignalAuthenticationAttempt(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String signature)Sending the initial request to use public key authenticationdefault voidsignalAuthenticationExhausted(ClientSession session, java.lang.String service)Signals end of public key attempts and optionally switching to other authentication methods.default voidsignalAuthenticationFailure(ClientSession session, java.lang.String service, java.security.KeyPair identity, boolean partial, java.util.List<java.lang.String> serverMethods)default voidsignalAuthenticationSuccess(ClientSession session, java.lang.String service, java.security.KeyPair identity)default voidsignalSignatureAttempt(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
-
-
-
Method Detail
-
signalAuthenticationAttempt
default void signalAuthenticationAttempt(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String signature) throws java.lang.Exception
Sending the initial request to use public key authentication- Parameters:
session- TheClientSessionservice- The requesting service nameidentity- TheKeyPairidentity being attempted - Note: for agent based authentications the private key may benullsignature- The type of signature that is being used- Throws:
java.lang.Exception- If failed to handle the callback - Note: may cause session close
-
signalAuthenticationExhausted
default void signalAuthenticationExhausted(ClientSession session, java.lang.String service) throws java.lang.Exception
Signals end of public key attempts and optionally switching to other authentication methods. Note: neithersignalAuthenticationSuccessnorsignalAuthenticationFailureare invoked.- Parameters:
session- TheClientSessionservice- The requesting service name- Throws:
java.lang.Exception- If failed to handle the callback - Note: may cause session close
-
signalSignatureAttempt
default void signalSignatureAttempt(ClientSession session, java.lang.String service, java.security.KeyPair identity, java.lang.String signature, byte[] signed) throws java.lang.Exception
Sending the signed response to the server's challenge- Parameters:
session- TheClientSessionservice- The requesting service nameidentity- TheKeyPairidentity being attempted - Note: for agent based authentications the private key may benullsignature- The type of signature that is being usedsigned- The generated signature data- Throws:
java.lang.Exception- If failed to handle the callback - Note: may cause session close
-
signalAuthenticationSuccess
default void signalAuthenticationSuccess(ClientSession session, java.lang.String service, java.security.KeyPair identity) throws java.lang.Exception
- Parameters:
session- TheClientSessionservice- The requesting service nameidentity- TheKeyPairidentity being attempted - Note: for agent based authentications the private key may benull- Throws:
java.lang.Exception- If failed to handle the callback - Note: may cause session close
-
signalAuthenticationFailure
default 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
- Parameters:
session- TheClientSessionservice- The requesting service nameidentity- TheKeyPairidentity being attempted - Note: for agent based authentications the private key may benullpartial-trueif some partial authentication success so farserverMethods- TheListof authentication methods that can continue- Throws:
java.lang.Exception- If failed to handle the callback - Note: may cause session close
-
-