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, setUserAuthFactoriesNames
getKeyPairProvider, setKeyPairProvider
static 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 null
void 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 null
void 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 null
void 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 null
void 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 null
void 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 null
List
of NamedFactory
for the UserAuth
sresolveUserAuthFactories(ServerAuthenticationManager, List)
static List<UserAuthFactory> resolveUserAuthFactories(ServerAuthenticationManager manager, List<UserAuthFactory> userFactories)
manager
- The ServerAuthenticationManager
- ignored if null
userFactories
- The currently available UserAuth
factories - if not null
/empty then they
are used as-is.List
of NamedFactory
for the UserAuth
sCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.