public interface AuthenticationMechanismFactory<C extends Context>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEYBOARD_INTERACTIVE_AUTHENTICATION |
static java.lang.String |
NONE |
static java.lang.String |
PASSWORD_AUTHENTICATION |
static java.lang.String |
PUBLICKEY_AUTHENTICATION |
| Modifier and Type | Method and Description |
|---|---|
void |
addProvider(Authenticator provider) |
void |
addProviders(java.util.Collection<Authenticator> providers) |
AuthenticationMechanism |
createInstance(java.lang.String name,
AbstractServerTransport<C> transport,
AbstractAuthenticationProtocol<C> authentication,
SshConnection con) |
Authenticator[] |
getProviders(java.lang.String name,
SshConnection con) |
java.lang.String[] |
getRequiredMechanisms(SshConnection con) |
java.lang.String[] |
getSupportedMechanisms() |
boolean |
isSupportedMechanism(java.lang.String method) |
static final java.lang.String NONE
static final java.lang.String PASSWORD_AUTHENTICATION
static final java.lang.String PUBLICKEY_AUTHENTICATION
static final java.lang.String KEYBOARD_INTERACTIVE_AUTHENTICATION
AuthenticationMechanism createInstance(java.lang.String name, AbstractServerTransport<C> transport, AbstractAuthenticationProtocol<C> authentication, SshConnection con) throws UnsupportedChannelException
UnsupportedChannelExceptionjava.lang.String[] getRequiredMechanisms(SshConnection con)
java.lang.String[] getSupportedMechanisms()
Authenticator[] getProviders(java.lang.String name, SshConnection con)
void addProvider(Authenticator provider)
void addProviders(java.util.Collection<Authenticator> providers)
boolean isSupportedMechanism(java.lang.String method)
Copyright © 2022. All rights reserved.