ResolverType
- the subtype of CredentialResolver to be chainedpublic abstract class AbstractChainingCredentialResolver<ResolverType extends CredentialResolver> extends AbstractCredentialResolver
CredentialResolver
which chains together one or more underlying credential
resolver implementations. Resolved credentials are returned from all underlying resolvers in the chain,
in the order implied by the order of the resolvers in the chain.Modifier and Type | Class and Description |
---|---|
class |
AbstractChainingCredentialResolver.CredentialIterable
Implementation of
Iterable to be returned by ChainingCredentialResolver . |
class |
AbstractChainingCredentialResolver.CredentialIterator
Implementation of
Iterator to be returned (indirectly) by ChainingCredentialResolver . |
Constructor and Description |
---|
AbstractChainingCredentialResolver(List<ResolverType> credResolvers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<ResolverType> |
getResolverChain()
Get the unmodifiable list of credential resolvers which comprise the resolver chain.
|
Iterable<Credential> |
resolve(CriteriaSet criteriaSet)
Process the specified criteria and return the resulting instances of the product type
which satisfy the criteria.
|
resolveSingle
public AbstractChainingCredentialResolver(@Nonnull List<ResolverType> credResolvers)
credResolvers
- the list of chained credential resolvers@Nonnull @NonnullElements @Unmodifiable @NotLive public List<ResolverType> getResolverChain()
@Nonnull public Iterable<Credential> resolve(@Nullable CriteriaSet criteriaSet) throws ResolverException
resolve
in interface Resolver<Credential,CriteriaSet>
resolve
in class AbstractCredentialResolver
criteriaSet
- the criteria to evaluate or processResolverException
- thrown if there is an error processing the specified criteriaCopyright © 2016 JBoss by Red Hat. All rights reserved.