public interface ClientAuthenticationManager extends KeyPairProviderHolder
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() |
AuthenticationIdentitiesProvider |
getRegisteredIdentities() |
ServerKeyVerifier |
getServerKeyVerifier()
Retrieve the server key verifier to be used to check the key when connecting
to an SSH server.
|
List<NamedFactory<UserAuth>> |
getUserAuthFactories() |
UserInteraction |
getUserInteraction() |
String |
removePasswordIdentity(String password) |
KeyPair |
removePublicKeyIdentity(KeyPair kp) |
void |
setPasswordIdentityProvider(PasswordIdentityProvider provider) |
void |
setServerKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
void |
setUserAuthFactories(List<NamedFactory<UserAuth>> userAuthFactories) |
void |
setUserInteraction(UserInteraction userInteraction) |
getKeyPairProvider, setKeyPairProvider
static final String PREFERRED_AUTHS
null
/empty, then the session's getUserAuthFactories()
is used as-isstatic final String PASSWORD_PROMPTS
static final int DEFAULT_PASSWORD_PROMPTS
PASSWORD_PROMPTS
if none configuredAuthenticationIdentitiesProvider getRegisteredIdentities()
PasswordIdentityProvider getPasswordIdentityProvider()
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 null
KeyPair
- same one that was added via
addPublicKeyIdentity(KeyPair)
- or null
if no
match foundServerKeyVerifier getServerKeyVerifier()
ServerKeyVerifier
to use - never null
void 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)
List<NamedFactory<UserAuth>> getUserAuthFactories()
List
of UserAuth
NamedFactory
-ies - never
null
/emptyvoid setUserAuthFactories(List<NamedFactory<UserAuth>> userAuthFactories)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.