Class AbstractCriteriaFilteringCredentialResolver
java.lang.Object
org.opensaml.security.credential.impl.AbstractCredentialResolver
org.opensaml.security.credential.impl.AbstractCriteriaFilteringCredentialResolver
- All Implemented Interfaces:
Resolver<Credential,,CriteriaSet> CredentialResolver
- Direct Known Subclasses:
BasicProviderKeyInfoCredentialResolver,CollectionCredentialResolver,FilesystemCredentialResolver,KeyStoreCredentialResolver,MetadataCredentialResolver
public abstract class AbstractCriteriaFilteringCredentialResolver
extends AbstractCredentialResolver
An abstract implementation of
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanFlag which determines whether predicates used in filtering are connected by a logical 'AND' or by logical 'OR'. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Set<Predicate<Credential>>getPredicates(CriteriaSet criteriaSet) Construct a set of credential predicates based on the criteria set.booleanGet the flag indicating whether resolved credentials must satisfy all predicates (i.e.resolve(CriteriaSet criteriaSet) 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.voidsetSatisfyAllPredicates(boolean flag) Set the flag indicating whether resolved credentials must satisfy all predicates (i.e.Methods inherited from class org.opensaml.security.credential.impl.AbstractCredentialResolver
resolveSingle
-
Field Details
-
satisfyAllPredicates
private boolean satisfyAllPredicatesFlag which determines whether predicates used in filtering are connected by a logical 'AND' or by logical 'OR'.
-
-
Constructor Details
-
AbstractCriteriaFilteringCredentialResolver
public AbstractCriteriaFilteringCredentialResolver()Constructor.
-
-
Method Details
-
isSatisfyAllPredicates
public boolean isSatisfyAllPredicates()Get the flag indicating whether resolved credentials must satisfy all predicates (i.e. connected by logical 'AND') or only one or more (connected by logical 'OR').- Returns:
- true if must satisfy all, false otherwise
-
setSatisfyAllPredicates
public void setSatisfyAllPredicates(boolean flag) Set the flag indicating whether resolved credentials must satisfy all predicates (i.e. connected by logical 'AND') or only one or more (connected by logical 'OR').- Parameters:
flag- true if must satisfy all, false otherwise