org.opensaml.xml.security.credential
Class ChainingCredentialResolver

java.lang.Object
  extended by org.opensaml.xml.security.credential.AbstractCredentialResolver
      extended by org.opensaml.xml.security.credential.ChainingCredentialResolver
All Implemented Interfaces:
CredentialResolver, Resolver<Credential,CriteriaSet>

public class ChainingCredentialResolver
extends AbstractCredentialResolver

An implementation of 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.


Nested Class Summary
 class ChainingCredentialResolver.CredentialIterable
          Implementation of Iterable to be returned by ChainingCredentialResolver.
 class ChainingCredentialResolver.CredentialIterator
          Implementation of Iterator to be returned (indirectly) by ChainingCredentialResolver.
 
Field Summary
private  Logger log
          Logger.
private  List<CredentialResolver> resolvers
          List of credential resolvers in the chain.
 
Constructor Summary
ChainingCredentialResolver()
          Constructor.
 
Method Summary
 List<CredentialResolver> getResolverChain()
          Get the (modifiable) list of credential resolvers which comprise the resolver chain.
 Iterable<Credential> resolve(CriteriaSet criteriaSet)
          Process the specified criteria and return the resulting instances the the product type which satisfy the criteria.
 
Methods inherited from class org.opensaml.xml.security.credential.AbstractCredentialResolver
resolveSingle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final Logger log
Logger.


resolvers

private List<CredentialResolver> resolvers
List of credential resolvers in the chain.

Constructor Detail

ChainingCredentialResolver

public ChainingCredentialResolver()
Constructor.

Method Detail

getResolverChain

public List<CredentialResolver> getResolverChain()
Get the (modifiable) list of credential resolvers which comprise the resolver chain.

Returns:
the list of credential resolvers in the chain

resolve

public Iterable<Credential> resolve(CriteriaSet criteriaSet)
                             throws SecurityException
Process the specified criteria and return the resulting instances the the product type which satisfy the criteria.

Specified by:
resolve in interface Resolver<Credential,CriteriaSet>
Specified by:
resolve in class AbstractCredentialResolver
Parameters:
criteriaSet - the criteria to evaluate or process
Returns:
instances which satisfy the criteria
Throws:
SecurityException - thrown if there is an error processing the specified criteria


Copyright © 1999-2012. All Rights Reserved.