Class CollectionCredentialResolver
java.lang.Object
org.opensaml.security.credential.impl.AbstractCredentialResolver
org.opensaml.security.credential.impl.AbstractCriteriaFilteringCredentialResolver
org.opensaml.security.credential.impl.CollectionCredentialResolver
- All Implemented Interfaces:
Resolver<Credential,,CriteriaSet> CredentialResolver
- Direct Known Subclasses:
CollectionKeyInfoCredentialResolver
An implementation of
CredentialResolver that
uses a Collection as the underlying credential source.
The credentials returned are filtered based on any
EvaluableCredentialCriterion that may
have been present in the specified criteria set, or that are resolved by lookup in the
EvaluableCredentialCriteriaRegistry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<Credential>The collection of credentials which is the underlying store for the resolver. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.CollectionCredentialResolver(Collection<Credential> credentials) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet the (modifiable) credential collection which is the backing store for the resolver.protected Iterable<Credential>resolveFromSource(CriteriaSet criteriaSet) Subclasses are required to implement this method to resolve credentials from the implementation-specific type of underlying credential source.Methods inherited from class org.opensaml.security.credential.impl.AbstractCriteriaFilteringCredentialResolver
isSatisfyAllPredicates, resolve, setSatisfyAllPredicatesMethods inherited from class org.opensaml.security.credential.impl.AbstractCredentialResolver
resolveSingle
-
Field Details
-
collection
The collection of credentials which is the underlying store for the resolver.
-
-
Constructor Details
-
CollectionCredentialResolver
public CollectionCredentialResolver()Constructor. AnArrayListis used as the underlying collection implementation. -
CollectionCredentialResolver
Constructor.- Parameters:
credentials- the credential collection which is the backing store for the resolver
-
-
Method Details
-
getCollection
Get the (modifiable) credential collection which is the backing store for the resolver.- Returns:
- the credential collection backing store
-