public interface ServerAuthenticationManager extends UserAuthFactoriesManager<ServerSession,UserAuth,UserAuthFactory>, KeyPairProviderHolder
| Modifier and Type | Field and Description |
|---|---|
static UserAuthGSSFactory |
DEFAULT_USER_AUTH_GSS_FACTORY |
static UserAuthKeyboardInteractiveFactory |
DEFAULT_USER_AUTH_KB_INTERACTIVE_FACTORY |
static UserAuthPasswordFactory |
DEFAULT_USER_AUTH_PASSWORD_FACTORY |
static UserAuthPublicKeyFactory |
DEFAULT_USER_AUTH_PUBLIC_KEY_FACTORY |
| Modifier and Type | Method and Description |
|---|---|
GSSAuthenticator |
getGSSAuthenticator()
Retrieve the
GSSAuthenticator to be used by the SSH server. |
HostBasedAuthenticator |
getHostBasedAuthenticator()
Retrieve the
HostBasedAuthenticator to be used by the SSH server. |
HostKeyCertificateProvider |
getHostKeyCertificateProvider() |
KeyboardInteractiveAuthenticator |
getKeyboardInteractiveAuthenticator()
Retrieve the
KeyboardInteractiveAuthenticator to be used by the SSH server. |
PasswordAuthenticator |
getPasswordAuthenticator()
Retrieve the
PasswordAuthenticator to be used by the SSH server. |
PublickeyAuthenticator |
getPublickeyAuthenticator()
Retrieve the
PublickeyAuthenticator to be used by SSH server. |
static java.util.List<UserAuthFactory> |
resolveUserAuthFactories(ServerAuthenticationManager manager)
If user authentication factories already set, then simply returns them.
|
static java.util.List<UserAuthFactory> |
resolveUserAuthFactories(ServerAuthenticationManager manager,
java.util.List<UserAuthFactory> userFactories)
If user authentication factories already set, then simply returns them.
|
void |
setGSSAuthenticator(GSSAuthenticator gssAuthenticator) |
void |
setHostBasedAuthenticator(HostBasedAuthenticator hostBasedAuthenticator) |
void |
setHostKeyCertificateProvider(HostKeyCertificateProvider provider) |
void |
setKeyboardInteractiveAuthenticator(KeyboardInteractiveAuthenticator interactiveAuthenticator) |
void |
setPasswordAuthenticator(PasswordAuthenticator passwordAuthenticator) |
void |
setPublickeyAuthenticator(PublickeyAuthenticator publickeyAuthenticator) |
default void |
setUserAuthFactoriesNames(java.util.Collection<java.lang.String> names) |
getUserAuthFactories, getUserAuthFactoriesNameList, getUserAuthFactoriesNames, setUserAuthFactories, setUserAuthFactoriesNameList, setUserAuthFactoriesNamesgetKeyPairProvider, setKeyPairProviderstatic final UserAuthPublicKeyFactory DEFAULT_USER_AUTH_PUBLIC_KEY_FACTORY
static final UserAuthGSSFactory DEFAULT_USER_AUTH_GSS_FACTORY
static final UserAuthPasswordFactory DEFAULT_USER_AUTH_PASSWORD_FACTORY
static final UserAuthKeyboardInteractiveFactory DEFAULT_USER_AUTH_KB_INTERACTIVE_FACTORY
default void setUserAuthFactoriesNames(java.util.Collection<java.lang.String> names)
setUserAuthFactoriesNames in interface UserAuthFactoriesManager<ServerSession,UserAuth,UserAuthFactory>PublickeyAuthenticator getPublickeyAuthenticator()
PublickeyAuthenticator to be used by SSH server. If no authenticator has been
configured (i.e. this method returns null), then client authentication requests based on keys will be
rejected.PublickeyAuthenticator or nullvoid setPasswordAuthenticator(PasswordAuthenticator passwordAuthenticator)
PasswordAuthenticator getPasswordAuthenticator()
PasswordAuthenticator to be used by the SSH server. If no authenticator has been
configured (i.e. this method returns null), then client authentication requests based on passwords will
be rejected.PasswordAuthenticator or nullvoid setPublickeyAuthenticator(PublickeyAuthenticator publickeyAuthenticator)
KeyboardInteractiveAuthenticator getKeyboardInteractiveAuthenticator()
KeyboardInteractiveAuthenticator to be used by the SSH server. If no authenticator has
been configured (i.e. this method returns null), then client authentication requests based on this method
will be rejected.KeyboardInteractiveAuthenticator or nullvoid setKeyboardInteractiveAuthenticator(KeyboardInteractiveAuthenticator interactiveAuthenticator)
GSSAuthenticator getGSSAuthenticator()
GSSAuthenticator to be used by the SSH server. If no authenticator has been configured
(i.e. this method returns null), then client authentication requests based on gssapi will be rejected.GSSAuthenticator or nullvoid setGSSAuthenticator(GSSAuthenticator gssAuthenticator)
HostBasedAuthenticator getHostBasedAuthenticator()
HostBasedAuthenticator to be used by the SSH server. If no authenticator has been configured
(i.e. this method returns null), then client authentication requests based on this method will be
rejected.HostBasedAuthenticator or nullvoid setHostBasedAuthenticator(HostBasedAuthenticator hostBasedAuthenticator)
HostKeyCertificateProvider getHostKeyCertificateProvider()
HostKeyCertificateProvider if available, null as defaultvoid setHostKeyCertificateProvider(HostKeyCertificateProvider provider)
static java.util.List<UserAuthFactory> resolveUserAuthFactories(ServerAuthenticationManager manager)
manager - The ServerAuthenticationManager - ignored if nullList of NamedFactory for the UserAuthsresolveUserAuthFactories(ServerAuthenticationManager, List)static java.util.List<UserAuthFactory> resolveUserAuthFactories(ServerAuthenticationManager manager, java.util.List<UserAuthFactory> userFactories)
manager - The ServerAuthenticationManager - ignored if nulluserFactories - The currently available UserAuth factories - if not null/empty then they
are used as-is.List of NamedFactory for the UserAuths