org.opensaml.xml.security.credential
Class StaticCredentialResolver

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

public class StaticCredentialResolver
extends AbstractCredentialResolver

Simple implementation of 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 Summary
StaticCredentialResolver(Credential credential)
          Constructor.
StaticCredentialResolver(List<Credential> credentials)
          Constructor.
 
Method Summary
 Iterable<Credential> resolve(CriteriaSet criteria)
          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
 

Constructor Detail

StaticCredentialResolver

public StaticCredentialResolver(List<Credential> credentials)
Constructor.

Parameters:
credentials - collection of credentials to be held by this resolver

StaticCredentialResolver

public StaticCredentialResolver(Credential credential)
Constructor.

Parameters:
credential - a single credential to be held by this resolver
Method Detail

resolve

public Iterable<Credential> resolve(CriteriaSet criteria)
                             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:
criteria - 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-2011 Internet2. All Rights Reserved.