public class DefaultAuthenticationMechanismFactory extends Object implements AuthenticationMechanismFactory
| Modifier and Type | Field and Description |
|---|---|
protected List<PasswordAuthenticationProvider> |
passwordProviders |
protected List<PublicKeyAuthenticationProvider> |
publickeyProviders |
protected List<String> |
supportedMechanisms |
KEYBOARD_INTERACTIVE_AUTHENTICATION, NONE, PASSWORD_AUTHENTICATION, PUBLICKEY_AUTHENTICATION| Constructor and Description |
|---|
DefaultAuthenticationMechanismFactory(SshContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPasswordAuthenticationProvider(PasswordAuthenticationProvider provider) |
void |
addProvider(AuthenticationProvider provider) |
void |
addPublicKeyAuthenticationProvider(PublicKeyAuthenticationProvider provider) |
AuthenticationMechanism |
createInstance(String name,
org.apache.mina.core.session.IoSession session,
SshTransport transport,
AuthenticationProtocol authentication,
Connection con) |
KeyboardInteractiveProvider |
getKeyboardInteractiveProvider() |
PasswordAuthenticationProvider[] |
getPasswordAuthenticationProviders() |
PublicKeyAuthenticationProvider[] |
getPublicKeyAuthenticationProviders() |
String[] |
getSupportedMechanisms() |
void |
remotePasswordAuthenticationProvider(PasswordAuthenticationProvider provider) |
void |
remotePublicKeyAuthenticationProvider(PublicKeyAuthenticationProvider provider) |
protected List<PasswordAuthenticationProvider> passwordProviders
protected List<PublicKeyAuthenticationProvider> publickeyProviders
public DefaultAuthenticationMechanismFactory(SshContext context)
public void addPasswordAuthenticationProvider(PasswordAuthenticationProvider provider)
public void remotePasswordAuthenticationProvider(PasswordAuthenticationProvider provider)
public void addPublicKeyAuthenticationProvider(PublicKeyAuthenticationProvider provider)
public void remotePublicKeyAuthenticationProvider(PublicKeyAuthenticationProvider provider)
public void addProvider(AuthenticationProvider provider)
public AuthenticationMechanism createInstance(String name, org.apache.mina.core.session.IoSession session, SshTransport transport, AuthenticationProtocol authentication, Connection con) throws UnsupportedChannelException
createInstance in interface AuthenticationMechanismFactoryUnsupportedChannelExceptionpublic KeyboardInteractiveProvider getKeyboardInteractiveProvider()
public String[] getSupportedMechanisms()
getSupportedMechanisms in interface AuthenticationMechanismFactorypublic PublicKeyAuthenticationProvider[] getPublicKeyAuthenticationProviders()
public PasswordAuthenticationProvider[] getPasswordAuthenticationProviders()
Copyright © 2012. All Rights Reserved.