com.maverick.sshd.auth
Class DefaultAuthenticationMechanismFactory
java.lang.Object
com.maverick.sshd.auth.DefaultAuthenticationMechanismFactory
- All Implemented Interfaces:
- AuthenticationMechanismFactory
- Direct Known Subclasses:
- AllowNoneAuthenticationMechanismFactory
public class DefaultAuthenticationMechanismFactory
- extends Object
- implements AuthenticationMechanismFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
supportedMechanisms
protected List<String> supportedMechanisms
passwordProviders
protected List<PasswordAuthenticationProvider> passwordProviders
publickeyProviders
protected List<PublicKeyAuthenticationProvider> publickeyProviders
DefaultAuthenticationMechanismFactory
public DefaultAuthenticationMechanismFactory(SshContext context)
addPasswordAuthenticationProvider
public void addPasswordAuthenticationProvider(PasswordAuthenticationProvider provider)
remotePasswordAuthenticationProvider
public void remotePasswordAuthenticationProvider(PasswordAuthenticationProvider provider)
addPublicKeyAuthenticationProvider
public void addPublicKeyAuthenticationProvider(PublicKeyAuthenticationProvider provider)
remotePublicKeyAuthenticationProvider
public void remotePublicKeyAuthenticationProvider(PublicKeyAuthenticationProvider provider)
addProvider
public void addProvider(AuthenticationProvider provider)
createInstance
public AuthenticationMechanism createInstance(String name,
org.apache.mina.core.session.IoSession session,
SshTransport transport,
AuthenticationProtocol authentication,
Connection con)
throws UnsupportedChannelException
- Specified by:
createInstance in interface AuthenticationMechanismFactory
- Throws:
UnsupportedChannelException
getKeyboardInteractiveProvider
public KeyboardInteractiveProvider getKeyboardInteractiveProvider()
getSupportedMechanisms
public String[] getSupportedMechanisms()
- Specified by:
getSupportedMechanisms in interface AuthenticationMechanismFactory
getPublicKeyAuthenticationProviders
public PublicKeyAuthenticationProvider[] getPublicKeyAuthenticationProviders()
getPasswordAuthenticationProviders
public PasswordAuthenticationProvider[] getPasswordAuthenticationProviders()
Copyright © 2012. All Rights Reserved.