Package org.apache.sshd.client.auth
Interface AuthenticationIdentitiesProvider
- All Superinterfaces:
KeyIdentityProvider,PasswordIdentityProvider
public interface AuthenticationIdentitiesProvider
extends KeyIdentityProvider, PasswordIdentityProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<Object> static final Comparator<Object> Compares 2 password identities - returns zero ONLY if both compared objects areStrings and equal to each otherFields inherited from interface org.apache.sshd.common.keyprovider.KeyIdentityProvider
EMPTY_KEYS_PROVIDERFields inherited from interface org.apache.sshd.client.auth.password.PasswordIdentityProvider
EMPTY_PASSWORDS_PROVIDER -
Method Summary
Modifier and TypeMethodDescriptionstatic intfindIdentityIndex(List<?> identities, Comparator<? super Object> comp, Object target) Iterable<?> loadIdentities(SessionContext session) wrapIdentities(Iterable<?> identities) Methods inherited from interface org.apache.sshd.common.keyprovider.KeyIdentityProvider
loadKeysMethods inherited from interface org.apache.sshd.client.auth.password.PasswordIdentityProvider
loadPasswords
-
Field Details
-
PASSWORD_IDENTITY_COMPARATOR
Compares 2 password identities - returns zero ONLY if both compared objects areStrings and equal to each other -
KEYPAIR_IDENTITY_COMPARATOR
-
-
Method Details
-
loadIdentities
- Parameters:
session- TheSessionContextfor invoking this load command - may benullif not invoked within a session context (e.g., offline tool).- Returns:
- All the currently available identities - passwords, keys, etc...
- Throws:
IOException- If failed to load the identitiesGeneralSecurityException- If some security issue with the identities (e.g., keys)
-
findIdentityIndex
-
wrapIdentities
- Parameters:
identities- TheIterableidentities - OK ifnull/empty- Returns:
- An
AuthenticationIdentitiesProviderwrapping the identities
-