Package com.sshtools.common.auth
Interface AuthenticationMechanismFactory<C extends Context>
- All Known Implementing Classes:
DefaultAuthenticationMechanismFactory
public interface AuthenticationMechanismFactory<C extends Context>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProvider(Authenticator provider) voidaddProviders(Collection<Authenticator> providers) createInstance(String name, AbstractServerTransport<C> transport, AbstractAuthenticationProtocol<C> authentication, SshConnection con) getProviders(String name, SshConnection con) String[]String[]booleanisSupportedMechanism(String method)
-
Field Details
-
NONE
- See Also:
-
PASSWORD_AUTHENTICATION
- See Also:
-
PUBLICKEY_AUTHENTICATION
- See Also:
-
KEYBOARD_INTERACTIVE_AUTHENTICATION
- See Also:
-
-
Method Details
-
createInstance
AuthenticationMechanism createInstance(String name, AbstractServerTransport<C> transport, AbstractAuthenticationProtocol<C> authentication, SshConnection con) throws UnsupportedChannelException - Throws:
UnsupportedChannelException
-
getRequiredMechanisms
-
getSupportedMechanisms
String[] getSupportedMechanisms() -
getProviders
-
addProvider
-
addProviders
-
isSupportedMechanism
-