org.opensaml.xml.security.keyinfo
Class StaticKeyInfoCredentialResolver

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

public class StaticKeyInfoCredentialResolver
extends StaticCredentialResolver
implements KeyInfoCredentialResolver

Simple implementation of KeyInfoCredentialResolver 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 KeyInfoCredentialResolver implementation which does support evaluation and filtering based on supplied evaluable criteria, see CollectionKeyInfoCredentialResolver.

This implementation might also be used at the end of a chain of KeyInfoCredentialResolvers in order to supply a default, fallback set of credentials, if none could otherwise be resolved.


Constructor Summary
StaticKeyInfoCredentialResolver(Credential credential)
          Constructor.
StaticKeyInfoCredentialResolver(List<Credential> credentials)
          Constructor.
 
Method Summary
 
Methods inherited from class org.opensaml.xml.security.credential.StaticCredentialResolver
resolve
 
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
 
Methods inherited from interface org.opensaml.xml.security.Resolver
resolve, resolveSingle
 

Constructor Detail

StaticKeyInfoCredentialResolver

public StaticKeyInfoCredentialResolver(List<Credential> credentials)
Constructor.

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

StaticKeyInfoCredentialResolver

public StaticKeyInfoCredentialResolver(Credential credential)
Constructor.

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


Copyright © 2006-2011 Internet2. All Rights Reserved.