public class CollectionCredentialResolver extends AbstractCriteriaFilteringCredentialResolver
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
.
Modifier and Type | Field and Description |
---|---|
private Collection<Credential> |
collection
The collection of credentials which is the underlying store for the resolver.
|
Constructor and Description |
---|
CollectionCredentialResolver()
Constructor.
|
CollectionCredentialResolver(Collection<Credential> credentials)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<Credential> |
getCollection()
Get 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.
|
isSatisfyAllPredicates, resolve, setSatisfyAllPredicates
resolveSingle
private final Collection<Credential> collection
public CollectionCredentialResolver()
ArrayList
is used as the underlying collection implementation.public CollectionCredentialResolver(@Nonnull Collection<Credential> credentials)
credentials
- the credential collection which is the backing store for the resolver@Nonnull public Collection<Credential> getCollection()
@Nonnull protected Iterable<Credential> resolveFromSource(@Nullable CriteriaSet criteriaSet) throws ResolverException
resolveFromSource
in class AbstractCriteriaFilteringCredentialResolver
criteriaSet
- the set of criteria used to resolve credentials from the credential sourceResolverException
- thrown if there is an error resolving credentials from the credential sourceCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.