public interface AuthenticationIdentitiesProvider extends KeyIdentityProvider, PasswordIdentityProvider
Modifier and Type | Field and Description |
---|---|
static Comparator<Object> |
KEYPAIR_IDENTITY_COMPARATOR
|
static Comparator<Object> |
PASSWORD_IDENTITY_COMPARATOR
Compares 2 password identities - returns zero ONLY if both compared objects are
String s and equal
to each other |
EMPTY_KEYS_PROVIDER
EMPTY_PASSWORDS_PROVIDER
Modifier and Type | Method and Description |
---|---|
static int |
findIdentityIndex(List<?> identities,
Comparator<? super Object> comp,
Object target) |
Iterable<?> |
loadIdentities(SessionContext session) |
static AuthenticationIdentitiesProvider |
wrapIdentities(Iterable<?> identities) |
exhaustCurrentIdentities, isEmpty, iterableOf, loadKeys, multiProvider, multiProvider, resolveKeyIdentityProvider, wrapKeyPairs, wrapKeyPairs
iterableOf, iteratorOf, iteratorOf, loadPasswords, multiProvider, multiProvider, resolvePasswordIdentityProvider, wrapPasswords, wrapPasswords
static final Comparator<Object> PASSWORD_IDENTITY_COMPARATOR
String
s and equal
to each otherstatic final Comparator<Object> KEYPAIR_IDENTITY_COMPARATOR
Iterable<?> loadIdentities(SessionContext session) throws IOException, GeneralSecurityException
session
- The SessionContext
for invoking this load command - may be null
if not invoked within a session context (e.g., offline tool).IOException
- If failed to load the identitiesGeneralSecurityException
- If some security issue with the identities (e.g., keys)static int findIdentityIndex(List<?> identities, Comparator<? super Object> comp, Object target)
static AuthenticationIdentitiesProvider wrapIdentities(Iterable<?> identities)
identities
- The Iterable
identities - OK if null
/emptyAuthenticationIdentitiesProvider
wrapping the identitiesCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.