public abstract class AbstractCriteriaFilteringCredentialResolver extends AbstractCredentialResolver
CredentialResolver
that
filters the returned Credentials based on the instances of Predicate
which are present in the set of criteria as instances of EvaluableCredentialCriterion
,
or which are obtained via lookup in the EvaluableCredentialCriteriaRegistry
.Constructor and Description |
---|
AbstractCriteriaFilteringCredentialResolver()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSatisfyAllPredicates()
Get the flag indicating whether resolved credentials must satisfy all predicates
(i.e.
|
Iterable<Credential> |
resolve(net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet) |
protected abstract 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.
|
void |
setSatisfyAllPredicates(boolean flag)
Set the flag indicating whether resolved credentials must satisfy all predicates
(i.e.
|
resolveSingle
public AbstractCriteriaFilteringCredentialResolver()
@Nonnull public Iterable<Credential> resolve(@Nullable net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet) throws net.shibboleth.utilities.java.support.resolver.ResolverException
resolve
in interface net.shibboleth.utilities.java.support.resolver.Resolver<Credential,net.shibboleth.utilities.java.support.resolver.CriteriaSet>
resolve
in class AbstractCredentialResolver
net.shibboleth.utilities.java.support.resolver.ResolverException
public boolean isSatisfyAllPredicates()
public void setSatisfyAllPredicates(boolean flag)
flag
- true if must satisfy all, false otherwise@Nonnull protected abstract Iterable<Credential> resolveFromSource(@Nullable net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet) throws net.shibboleth.utilities.java.support.resolver.ResolverException
criteriaSet
- 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 © 2019. All rights reserved.