| Modifier and Type | Method and Description |
|---|---|
| public default boolean | Returns: true if OK to ignore the exceeded attempt count and allow more attemptsNote choosing to ignore this disconnect reason does not reset the current count - i.e., it will be re-invoked on the next attempt. The session being authenticated session, Service The service, String Service instance through which the request was receivedThe authentication service name serviceName, String The authentication method name method, String The authentication username user, int The authentication attempt count currentAuthCount, int The maximum allowed attempts maxAuthCount)Invoked if the number of authentication attempts exceeded the maximum allowed |
| public default boolean | Returns: true if OK to ignore the changeThe session being authenticated session, Service The service, String Service instance through which the request was receivedThe original username being authenticated authUser, String The requested username username, String The original authentication service name authService, String The requested service name serviceName)Invoked if the authentication parameters changed in mid-authentication process. |
| public default boolean | Returns: true if disregard the violation - if false then session will disconnectThe session where the violation occurred session, Map<KexProposalOption, String> The client options c2sOptions, Map<KexProposalOption, String> The server options s2cOptions, Map<KexProposalOption, String> The negotiated KEX options negotiatedGuess, KexProposalOption The violating option)KexProposalOptionInvoked if after KEX negotiation parameters resolved one of the options violates some internal constraint (e.g., cannot negotiate a value, or RFC 8308 - section 2.2). |
| public default boolean | Returns: true if accept the exceeding session regardless of the threshold. If
false then exceeding session will be disconnectedThe session that caused the excess session, Service The service, String Service instance through which the request was receivedThe authenticated username that is associated with the session. username, int The current sessions count currentSessionCount, int The maximum allowed sessions count maxSessionCount)Called to inform that the maximum allowed concurrent sessions threshold has been exceeded Note when handler is invoked the session is not yet marked as having been authenticated, nor has the authentication success been acknowledged to the peer. |
| public default boolean | Returns: true if expired timeout should be reset (i.e., no disconnect). If false
then session will disconnect due to the expired timeoutThe session whose timeout has expired session, TimeoutIndicator The expired timeout timeoutStatus)Invoked when an internal timeout has expired (e.g., authentication, idle). |
| public default boolean | Returns: true if disregard the request (e.g., the handler handled it)The session through which the command was received session, int The service related command cmd, String The service name serviceName, Buffer Any extra data received in the packet containing the request buffer)Invoked when a request has been made related to an unknown SSH service as described in RFC 4253 - section 10. |
| handleAuthCountDisconnectReason | back to summary |
|---|---|
| public default boolean handleAuthCountDisconnectReason(Session session, Service service, String serviceName, String method, String user, int currentAuthCount, int maxAuthCount) throws IOException Invoked if the number of authentication attempts exceeded the maximum allowed
| |
| handleAuthParamsDisconnectReason | back to summary |
|---|---|
| public default boolean handleAuthParamsDisconnectReason(Session session, Service service, String authUser, String username, String authService, String serviceName) throws IOException Invoked if the authentication parameters changed in mid-authentication process.
| |
| handleKexDisconnectReason | back to summary |
|---|---|
| public default boolean handleKexDisconnectReason(Session session, Map<KexProposalOption, String> c2sOptions, Map<KexProposalOption, String> s2cOptions, Map<KexProposalOption, String> negotiatedGuess, KexProposalOption option) throws IOException Invoked if after KEX negotiation parameters resolved one of the options violates some internal constraint (e.g., cannot negotiate a value, or RFC 8308 - section 2.2).
| |
| handleSessionsCountDisconnectReason | back to summary |
|---|---|
| public default boolean handleSessionsCountDisconnectReason(Session session, Service service, String username, int currentSessionCount, int maxSessionCount) throws IOException Called to inform that the maximum allowed concurrent sessions threshold has been exceeded Note when handler is invoked the session is not yet marked as having been authenticated, nor has the authentication success been acknowledged to the peer.
| |
| handleTimeoutDisconnectReason | back to summary |
|---|---|
| public default boolean handleTimeoutDisconnectReason(Session session, TimeoutIndicator timeoutStatus) throws IOException Invoked when an internal timeout has expired (e.g., authentication, idle).
| |
| handleUnsupportedServiceDisconnectReason | back to summary |
|---|---|
| public default boolean handleUnsupportedServiceDisconnectReason(Session session, int cmd, String serviceName, Buffer buffer) throws IOException Invoked when a request has been made related to an unknown SSH service as described in RFC 4253 - section 10.
| |