Top Fields Methods
org.apache.sshd.client.auth

public Interface AuthenticationIdentitiesProvider

extends KeyIdentityProvider, PasswordIdentityProvider
Imports
java.io.IOException, java.security.GeneralSecurityException, .KeyPair, java.util.Comparator, .List, org.apache.sshd.client.auth.password.PasswordIdentityProvider, org.apache.sshd.common.config.keys.KeyUtils, org.apache.sshd.common.keyprovider.KeyIdentityProvider, org.apache.sshd.common.session.SessionContext, org.apache.sshd.common.util.helper.LazyMatchingTypeIterable

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final Comparator<Object>
KEYPAIR_IDENTITY_COMPARATOR

Compares 2 KeyPair identities - returns zero ONLY if both compared objects are KeyPairs and equal to each other

public static final Comparator<Object>
PASSWORD_IDENTITY_COMPARATOR

Compares 2 password identities - returns zero ONLY if both compared objects are Strings and equal to each other

Inherited from org.apache.sshd.client.auth.password.PasswordIdentityProvider:
EMPTY_PASSWORDS_PROVIDER
Inherited from org.apache.sshd.common.keyprovider.KeyIdentityProvider:
EMPTY_KEYS_PROVIDER

Method Summary

Modifier and TypeMethod and Description
public static int
findIdentityIndex(List<?> identities, Comparator<? super Object> comp, Object target)

public Iterable<?>

Returns:

All the currently available identities - passwords, keys, etc...
loadIdentities
(SessionContext
The SessionContext for invoking this load command - may be null if not invoked within a session context (e.g., offline tool).
session
)

public static AuthenticationIdentitiesProvider

Returns:

An AuthenticationIdentitiesProvider wrapping the identities
wrapIdentities
(Iterable<?>
The Iterable identities - OK if null/empty
identities
)

Inherited from org.apache.sshd.client.auth.password.PasswordIdentityProvider:
iterableOfiteratorOfiteratorOfloadPasswordsmultiProvidermultiProviderresolvePasswordIdentityProviderwrapPasswordswrapPasswords
Inherited from org.apache.sshd.common.keyprovider.KeyIdentityProvider:
exhaustCurrentIdentitiesisEmptyiterableOfloadKeysmultiProvidermultiProviderresolveKeyIdentityProviderwrapKeyPairswrapKeyPairs

Field Detail

KEYPAIR_IDENTITY_COMPARATORback to summary
public static final Comparator<Object> KEYPAIR_IDENTITY_COMPARATOR

Compares 2 KeyPair identities - returns zero ONLY if both compared objects are KeyPairs and equal to each other

PASSWORD_IDENTITY_COMPARATORback to summary
public static final Comparator<Object> PASSWORD_IDENTITY_COMPARATOR

Compares 2 password identities - returns zero ONLY if both compared objects are Strings and equal to each other

Method Detail

findIdentityIndexback to summary
public static int findIdentityIndex(List<?> identities, Comparator<? super Object> comp, Object target)
loadIdentitiesback to summary
public Iterable<?> loadIdentities(SessionContext session) throws IOException, GeneralSecurityException
Parameters
session:SessionContext

The SessionContext for invoking this load command - may be null if not invoked within a session context (e.g., offline tool).

Returns:Iterable<?>

All the currently available identities - passwords, keys, etc...

Exceptions
IOException:
If failed to load the identities
GeneralSecurityException:
If some security issue with the identities (e.g., keys)
wrapIdentitiesback to summary
public static AuthenticationIdentitiesProvider wrapIdentities(Iterable<?> identities)
Parameters
identities:Iterable<?>

The Iterable identities - OK if null/empty

Returns:AuthenticationIdentitiesProvider

An AuthenticationIdentitiesProvider wrapping the identities