public interface AuthenticationIdentitiesProvider extends KeyIdentityProvider, PasswordIdentityProvider
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<java.lang.Object> |
KEYPAIR_IDENTITY_COMPARATOR
Compares 2
KeyPair identities - returns zero ONLY if both compared objects are KeyPairs
and equal to each other |
static java.util.Comparator<java.lang.Object> |
PASSWORD_IDENTITY_COMPARATOR
Compares 2 password identities - returns zero ONLY if both compared objects are
Strings and equal
to each other |
EMPTY_KEYS_PROVIDEREMPTY_PASSWORDS_PROVIDER| Modifier and Type | Method and Description |
|---|---|
static int |
findIdentityIndex(java.util.List<?> identities,
java.util.Comparator<? super java.lang.Object> comp,
java.lang.Object target) |
java.lang.Iterable<?> |
loadIdentities(SessionContext session) |
static AuthenticationIdentitiesProvider |
wrapIdentities(java.lang.Iterable<?> identities) |
exhaustCurrentIdentities, isEmpty, iterableOf, loadKeys, multiProvider, multiProvider, resolveKeyIdentityProvider, wrapKeyPairs, wrapKeyPairsiterableOf, iteratorOf, iteratorOf, loadPasswords, multiProvider, multiProvider, resolvePasswordIdentityProvider, wrapPasswords, wrapPasswordsstatic final java.util.Comparator<java.lang.Object> PASSWORD_IDENTITY_COMPARATOR
Strings and equal
to each otherstatic final java.util.Comparator<java.lang.Object> KEYPAIR_IDENTITY_COMPARATOR
KeyPair identities - returns zero ONLY if both compared objects are KeyPairs
and equal to each otherjava.lang.Iterable<?> loadIdentities(SessionContext session) throws java.io.IOException, java.security.GeneralSecurityException
session - The SessionContext for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool).java.io.IOException - If failed to load the identitiesjava.security.GeneralSecurityException - If some security issue with the identities (e.g., keys)static int findIdentityIndex(java.util.List<?> identities,
java.util.Comparator<? super java.lang.Object> comp,
java.lang.Object target)
static AuthenticationIdentitiesProvider wrapIdentities(java.lang.Iterable<?> identities)
identities - The Iterable identities - OK if null/emptyAuthenticationIdentitiesProvider wrapping the identities