public class CollectionCredentialResolver extends AbstractCriteriaFilteringCredentialResolver
CredentialResolver
which uses a Collection
as the
underlying credential source.
The credentials returned are filtered based on any
EvaluableCredentialCriteria
which may have been present in the specified criteria set, or
which are resolved by lookup in the EvaluableCredentialCriteriaRegistry
.
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.
|
isMeetAllCriteria, isUnevaluableSatisfies, resolve, setMeetAllCriteria, setUnevaluableSatisfies
resolveSingle
public CollectionCredentialResolver()
ArrayList
is used as the underlying collection implementation.public CollectionCredentialResolver(Collection<Credential> credentials)
credentials
- the credential collection which is the backing store for the resolverpublic Collection<Credential> getCollection()
protected Iterable<Credential> resolveFromSource(CriteriaSet criteriaSet) throws SecurityException
resolveFromSource
in class AbstractCriteriaFilteringCredentialResolver
criteriaSet
- the set of criteria used to resolve credentials from the credential sourceSecurityException
- thrown if there is an error resolving credentials from the credential sourceCopyright © 2018 JBoss by Red Hat. All rights reserved.