org.opensaml.xml.security.credential
Class AbstractCredentialResolver

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

public abstract class AbstractCredentialResolver
extends Object
implements CredentialResolver

Abstract base class for CredentialResolver implementations.


Constructor Summary
AbstractCredentialResolver()
           
 
Method Summary
abstract  Iterable<Credential> resolve(CriteriaSet criteriaSet)
          Process the specified criteria and return the resulting instances the the product type which satisfy the criteria.
 Credential resolveSingle(CriteriaSet criteriaSet)
          Process the specified criteria and return a single instance of the product type which satisfies the criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCredentialResolver

public AbstractCredentialResolver()
Method Detail

resolveSingle

public Credential resolveSingle(CriteriaSet criteriaSet)
                         throws SecurityException
Process the specified criteria and return a single instance of the product type which satisfies the criteria. If multiple items satisfy the criteria, the choice of which single item to return is implementation-dependent.

Specified by:
resolveSingle in interface Resolver<Credential,CriteriaSet>
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

resolve

public abstract 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>
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 © 2006-2010 Internet2. All Rights Reserved.