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(CriteriaSet criteriaSet)
Process the specified criteria and return the resulting instances of the product type
which satisfy the criteria.
|
protected abstract Iterable<Credential> |
resolveFromSource(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 CriteriaSet criteriaSet) throws ResolverException
resolve
in interface Resolver<Credential,CriteriaSet>
resolve
in class AbstractCredentialResolver
criteriaSet
- the criteria to evaluate or processResolverException
- thrown if there is an error processing the specified criteriapublic boolean isSatisfyAllPredicates()
public void setSatisfyAllPredicates(boolean flag)
flag
- true if must satisfy all, false otherwise@Nonnull protected abstract Iterable<Credential> resolveFromSource(@Nullable CriteriaSet criteriaSet) throws ResolverException
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 © 2016 JBoss by Red Hat. All rights reserved.