public class UserAuthFactoriesFactory extends Object
A factory for user authentication factories to set on
SshServer#setUserAuthFactories(java.util.List) based on a
comma-separated list of authentication methods.
Currently, the following methods are supported:
password
Password authentication against a given JAAS domain.publickey
Public key authentication against an OpenSSH authorized_keys file.| Modifier and Type | Class and Description |
|---|---|
static class |
UserAuthFactoriesFactory.Converter
This blueprint type converter silently converts instances of
Class X implements NameFactory
to the reified type cNameFactory
and therefore helps blueprint to set the returned factories on
SshServerAction#setUserAuthFactories(List) without complaining
about type conversion errors. |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEYBOARD_INTERACTIVE_METHOD |
static String |
PASSWORD_METHOD |
static String |
PUBLICKEY_METHOD |
| Constructor and Description |
|---|
UserAuthFactoriesFactory() |
| Modifier and Type | Method and Description |
|---|---|
static UserAuthFactoriesFactory.Converter |
getConverter() |
List<org.apache.sshd.common.NamedFactory<org.apache.sshd.server.UserAuth>> |
getFactories() |
boolean |
isKeyboardInteractiveEnabled() |
boolean |
isPasswordEnabled() |
boolean |
isPublickeyEnabled() |
void |
setAuthMethods(String methods) |
public static final String PASSWORD_METHOD
public static final String PUBLICKEY_METHOD
public static final String KEYBOARD_INTERACTIVE_METHOD
public static UserAuthFactoriesFactory.Converter getConverter()
public void setAuthMethods(String methods)
public List<org.apache.sshd.common.NamedFactory<org.apache.sshd.server.UserAuth>> getFactories()
public boolean isPublickeyEnabled()
public boolean isPasswordEnabled()
public boolean isKeyboardInteractiveEnabled()
Copyright © 2007-2016 FuseSource, Corp.. All Rights Reserved.