com.maverick.sshd.auth
Class DefaultAuthenticationMechanismFactory

java.lang.Object
  extended by com.maverick.sshd.auth.DefaultAuthenticationMechanismFactory
All Implemented Interfaces:
AuthenticationMechanismFactory
Direct Known Subclasses:
AllowNoneAuthenticationMechanismFactory

public class DefaultAuthenticationMechanismFactory
extends Object
implements AuthenticationMechanismFactory


Field Summary
protected  List<PasswordAuthenticationProvider> passwordProviders
           
protected  List<PublicKeyAuthenticationProvider> publickeyProviders
           
protected  List<String> supportedMechanisms
           
 
Fields inherited from interface com.maverick.sshd.AuthenticationMechanismFactory
KEYBOARD_INTERACTIVE_AUTHENTICATION, NONE, PASSWORD_AUTHENTICATION, PUBLICKEY_AUTHENTICATION
 
Constructor Summary
DefaultAuthenticationMechanismFactory(SshContext context)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

supportedMechanisms

protected List<String> supportedMechanisms

passwordProviders

protected List<PasswordAuthenticationProvider> passwordProviders

publickeyProviders

protected List<PublicKeyAuthenticationProvider> publickeyProviders
Constructor Detail

DefaultAuthenticationMechanismFactory

public DefaultAuthenticationMechanismFactory(SshContext context)
Method Detail

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.