Package org.apache.sshd.client.auth
Interface AuthenticationIdentitiesProvider
-
- All Superinterfaces:
KeyIdentityProvider
,PasswordIdentityProvider
public interface AuthenticationIdentitiesProvider extends KeyIdentityProvider, PasswordIdentityProvider
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<Object>
KEYPAIR_IDENTITY_COMPARATOR
static Comparator<Object>
PASSWORD_IDENTITY_COMPARATOR
Compares 2 password identities - returns zero ONLY if both compared objects areString
s and equal to each other-
Fields inherited from interface org.apache.sshd.common.keyprovider.KeyIdentityProvider
EMPTY_KEYS_PROVIDER
-
Fields inherited from interface org.apache.sshd.client.auth.password.PasswordIdentityProvider
EMPTY_PASSWORDS_PROVIDER, LOADER
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static int
findIdentityIndex(List<?> identities, Comparator<? super Object> comp, Object target)
Iterable<?>
loadIdentities()
static AuthenticationIdentitiesProvider
wrapIdentities(Iterable<?> identities)
-
Methods inherited from interface org.apache.sshd.common.keyprovider.KeyIdentityProvider
loadKeys
-
Methods inherited from interface org.apache.sshd.client.auth.password.PasswordIdentityProvider
loadPasswords
-
-
-
-
Field Detail
-
PASSWORD_IDENTITY_COMPARATOR
static final Comparator<Object> PASSWORD_IDENTITY_COMPARATOR
Compares 2 password identities - returns zero ONLY if both compared objects areString
s and equal to each other
-
KEYPAIR_IDENTITY_COMPARATOR
static final Comparator<Object> KEYPAIR_IDENTITY_COMPARATOR
-
-
Method Detail
-
loadIdentities
Iterable<?> loadIdentities()
- Returns:
- All the currently available identities - passwords, keys, etc...
-
findIdentityIndex
static int findIdentityIndex(List<?> identities, Comparator<? super Object> comp, Object target)
-
wrapIdentities
static AuthenticationIdentitiesProvider wrapIdentities(Iterable<?> identities)
- Parameters:
identities
- TheIterable
identities - OK ifnull
/empty- Returns:
- An
AuthenticationIdentitiesProvider
wrapping the identities
-
-