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(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet)
Subclasses are required to implement this method to resolve credentials from the
implementation-specific type of underlying credential source.
|
isSatisfyAllPredicates, resolve, setSatisfyAllPredicatesresolveSingleprivate 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 net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet) throws net.shibboleth.utilities.java.support.resolver.ResolverException
resolveFromSource in class AbstractCriteriaFilteringCredentialResolvercriteriaSet - the set of criteria used to resolve credentials from the credential sourcenet.shibboleth.utilities.java.support.resolver.ResolverException - thrown if there is an error resolving credentials from the credential sourceCopyright © 1999–2015. All rights reserved.