public interface SshAuthenticationHandler
| Modifier and Type | Method and Description |
|---|---|
AuthenticationResult |
performAuthentication(SshAuthenticationContext authenticationContext)
Invoked by the system when authentication is attempted over SSH.
|
@Nullable AuthenticationResult performAuthentication(@Nonnull SshAuthenticationContext authenticationContext)
AuthenticationResult if the user is authenticated successfully
null if the handler does not know how to authenticate the user from the request (for
instance when a public key cannot be found in the system). By returning null, other
handlers will be attempted.
AuthenticationException if the provided authentication
details are invalid (e.g. invalid username / public key, etc.). In this case, no other
handlers will be attempted.
handlers will be invoked in
weight order until a handler successfully
authenticates the user, or throws an AuthenticationException.authenticationContext - the authentication context that provides username, public key, remote address, etcAuthenticationResult if the handler was able to authenticate a user based on the request, or
null if the handler opted outAuthenticationException - when authentication fails.Copyright © 2024 Atlassian. All rights reserved.