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
.
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 the the product type
which satisfy the criteria.
|
resolveSingle
public 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
in interface Resolver<Credential,CriteriaSet>
resolve
in class AbstractCredentialResolver
criteria
- the criteria to evaluate or processSecurityException
- thrown if there is an error processing the specified criteriaCopyright © 2018 JBoss by Red Hat. All rights reserved.