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 Criterion
specified are ignored. For a similar Collection-based CredentialResolver implementation which does support
evaluation and filtering based on supplied evaluable criteria, see CollectionCredentialResolver.
| Constructor and Description |
|---|
StaticCredentialResolver(Credential credential)
Constructor.
|
StaticCredentialResolver(List<Credential> credentials)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Credential> |
resolve(CriteriaSet criteria)
Process the specified criteria and return the resulting instances of the product type
which satisfy the criteria.
|
resolveSinglepublic StaticCredentialResolver(@Nonnull List<Credential> credentials)
credentials - collection of credentials to be held by this resolverpublic StaticCredentialResolver(@Nonnull Credential credential)
credential - a single credential to be held by this resolver@Nonnull public Iterable<Credential> resolve(@Nullable CriteriaSet criteria) throws ResolverException
resolve in interface Resolver<Credential,CriteriaSet>resolve in class AbstractCredentialResolvercriteria - the criteria to evaluate or processResolverException - thrown if there is an error processing the specified criteriaCopyright © 2016 JBoss by Red Hat. All rights reserved.