Package org.apache.karaf.shell.ssh
Class UserAuthFactoriesFactory
- java.lang.Object
-
- org.apache.karaf.shell.ssh.UserAuthFactoriesFactory
-
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:
passwordPassword authentication against a given JAAS domain.publickeyPublic key authentication against an OpenSSHauthorized_keysfile.
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEYBOARD_INTERACTIVE_METHODstatic StringPASSWORD_METHODstatic StringPUBLICKEY_METHOD
-
Constructor Summary
Constructors Constructor Description UserAuthFactoriesFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.sshd.server.auth.UserAuthFactory>getFactories()booleanisKeyboardInteractive()booleanisPasswordEnabled()booleanisPublickeyEnabled()voidsetAuthMethods(String[] methods)
-
-
-
Field Detail
-
PASSWORD_METHOD
public static final String PASSWORD_METHOD
- See Also:
- Constant Field Values
-
PUBLICKEY_METHOD
public static final String PUBLICKEY_METHOD
- See Also:
- Constant Field Values
-
KEYBOARD_INTERACTIVE_METHOD
public static final String KEYBOARD_INTERACTIVE_METHOD
- See Also:
- Constant Field Values
-
-
Method Detail
-
setAuthMethods
public void setAuthMethods(String[] methods)
-
getFactories
public List<org.apache.sshd.server.auth.UserAuthFactory> getFactories()
-
isPublickeyEnabled
public boolean isPublickeyEnabled()
-
isPasswordEnabled
public boolean isPasswordEnabled()
-
isKeyboardInteractive
public boolean isKeyboardInteractive()
-
-