public class StaticCredentialResolver extends AbstractCredentialResolver
CredentialResolver which just stores and returns a static set of credentials.
Note: no filtering or other evaluation of the credentials is performed. Any Criteria
specified are ignored. For a similar Collection-based CredentialResolver implementation which does support
evaluation and filtering based on supplied evaluable criteria, see CollectionCredentialResolver.
| コンストラクタと説明 |
|---|
StaticCredentialResolver(Credential credential)
Constructor.
|
StaticCredentialResolver(List<Credential> credentials)
Constructor.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Iterable<Credential> |
resolve(CriteriaSet criteria)
Process the specified criteria and return the resulting instances the the product type
which satisfy the criteria.
|
resolveSinglepublic StaticCredentialResolver(List<Credential> credentials)
credentials - collection of credentials to be held by this resolverpublic StaticCredentialResolver(Credential credential)
credential - a single credential to be held by this resolverpublic Iterable<Credential> resolve(CriteriaSet criteria) throws SecurityException
resolve インタフェース内 Resolver<Credential,CriteriaSet>resolve クラス内 AbstractCredentialResolvercriteria - the criteria to evaluate or processSecurityException - thrown if there is an error processing the specified criteriaCopyright © 2012. All Rights Reserved.