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.
| コンストラクタと説明 |
|---|
CollectionCredentialResolver()
Constructor.
|
CollectionCredentialResolver(Collection<Credential> credentials)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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, setUnevaluableSatisfiesresolveSinglepublic 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 クラス内 AbstractCriteriaFilteringCredentialResolvercriteriaSet - the set of criteria used to resolve credentials from the credential sourceSecurityException - thrown if there is an error resolving credentials from the credential sourceCopyright © 2012. All Rights Reserved.