public interface ServerAuthenticationManager
Modifier and Type | Interface and Description |
---|---|
static class |
ServerAuthenticationManager.Utils |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_AUTH_REQUESTS
Default value for
MAX_AUTH_REQUESTS if none configured |
static String |
MAX_AUTH_REQUESTS
Key used to retrieve the value in the configuration properties map
of the maximum number of failed authentication requests before the
server closes the connection.
|
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. |
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. |
List<NamedFactory<UserAuth>> |
getUserAuthFactories()
Retrieve the list of named factories for
UserAuth objects. |
void |
setGSSAuthenticator(GSSAuthenticator gssAuthenticator) |
void |
setHostBasedAuthenticator(HostBasedAuthenticator hostBasedAuthenticator) |
void |
setKeyboardInteractiveAuthenticator(KeyboardInteractiveAuthenticator interactiveAuthenticator) |
void |
setPasswordAuthenticator(PasswordAuthenticator passwordAuthenticator) |
void |
setPublickeyAuthenticator(PublickeyAuthenticator publickeyAuthenticator) |
void |
setUserAuthFactories(List<NamedFactory<UserAuth>> userAuthFactories) |
static final String MAX_AUTH_REQUESTS
DEFAULT_MAX_AUTH_REQUESTS
,
Constant Field Valuesstatic final int DEFAULT_MAX_AUTH_REQUESTS
MAX_AUTH_REQUESTS
if none configuredList<NamedFactory<UserAuth>> getUserAuthFactories()
UserAuth
objects.UserAuth
factories, never null
/emptyvoid setUserAuthFactories(List<NamedFactory<UserAuth>> userAuthFactories)
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)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.