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 |
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(Collection<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 List<UserAuthFactory> resolveUserAuthFactories(ServerAuthenticationManager manager)
manager - The ServerAuthenticationManager - ignored if nullList of NamedFactory for the UserAuthsresolveUserAuthFactories(ServerAuthenticationManager, List)static List<UserAuthFactory> resolveUserAuthFactories(ServerAuthenticationManager manager, 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 UserAuthsCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.