public interface ClientAuthenticationManager extends UserAuthFactoriesManager<ClientSession,UserAuth,UserAuthFactory>, KeyIdentityProviderHolder
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PASSWORD_PROMPTS
Default value for
PASSWORD_PROMPTS if none configured |
static String |
PASSWORD_PROMPTS
Specifies the number of interactive prompts before giving up.
|
static String |
PREFERRED_AUTHS
Ordered comma separated list of authentications methods.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPasswordIdentity(String password) |
void |
addPublicKeyIdentity(KeyPair key) |
PasswordIdentityProvider |
getPasswordIdentityProvider()
Retrieve
PasswordIdentityProvider used to provide password
candidates |
AuthenticationIdentitiesProvider |
getRegisteredIdentities() |
ServerKeyVerifier |
getServerKeyVerifier()
Retrieve the server key verifier to be used to check the key when connecting
to an SSH server.
|
UserInteraction |
getUserInteraction() |
String |
removePasswordIdentity(String password) |
KeyPair |
removePublicKeyIdentity(KeyPair kp) |
void |
setPasswordIdentityProvider(PasswordIdentityProvider provider) |
void |
setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
default void |
setUserAuthFactoriesNames(Collection<String> names) |
void |
setUserInteraction(UserInteraction userInteraction) |
getUserAuthFactories, getUserAuthFactoriesNameList, getUserAuthFactoriesNames, setUserAuthFactories, setUserAuthFactoriesNameList, setUserAuthFactoriesNamesgetKeyIdentityProvider, setKeyIdentityProviderstatic final String PREFERRED_AUTHS
null/empty, then the session's UserAuthFactoriesManager.getUserAuthFactories()
is used as-isstatic final String PASSWORD_PROMPTS
DEFAULT_PASSWORD_PROMPTS,
Constant Field Valuesstatic final int DEFAULT_PASSWORD_PROMPTS
PASSWORD_PROMPTS if none configuredAuthenticationIdentitiesProvider getRegisteredIdentities()
AuthenticationIdentitiesProvider to be used for attempting
password or public key authenticationPasswordIdentityProvider getPasswordIdentityProvider()
PasswordIdentityProvider used to provide password
candidatesPasswordIdentityProvider instance - ignored if null
(i.e., no passwords available).addPasswordIdentity(String)void setPasswordIdentityProvider(PasswordIdentityProvider provider)
void addPasswordIdentity(String password)
password - Password to be added - may not be null/empty.
Note: this password is in addition to whatever passwords
are available via the PasswordIdentityProvider (if any)String removePasswordIdentity(String password)
password - The password to remove - ignored if null/emptyaddPasswordIdentity(String) - or null if no
match foundvoid addPublicKeyIdentity(KeyPair key)
key - The KeyPair to add - may not be null
Note: this key is in addition to whatever keys
are available via the KeyIdentityProvider (if any)KeyPair removePublicKeyIdentity(KeyPair kp)
kp - The KeyPair to remove - ignored if nullKeyPair - same one that was added via
addPublicKeyIdentity(KeyPair) - or null if no
match foundServerKeyVerifier getServerKeyVerifier()
ServerKeyVerifier to use - never nullvoid setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier)
UserInteraction getUserInteraction()
UserInteraction object to communicate with the user
(may be null to indicate that no such communication is allowed)void setUserInteraction(UserInteraction userInteraction)
default void setUserAuthFactoriesNames(Collection<String> names)
setUserAuthFactoriesNames in interface UserAuthFactoriesManager<ClientSession,UserAuth,UserAuthFactory>Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.