org.opensaml.xml.security.credential
Class FilesystemCredentialResolver

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

public class FilesystemCredentialResolver
extends AbstractCriteriaFilteringCredentialResolver

NOTE: this class is not yet implemented A CredentialResolver that pulls credential information from the file system. This credential resolver attempts to retrieve credential information from the file system. Specifically it will attempt to find key, cert, and crl information from files within the given directory. The filename must start with the entity ID and be followed by one of the follow extensions:


Constructor Summary
FilesystemCredentialResolver(String credentialDirectory, Map<String,String> passwords)
          Constructor.
 
Method Summary
protected  Iterable<Credential> resolveFromSource(CriteriaSet criteriaSet)
          Subclasses are required to implement this method to resolve credentials from the implementation-specific type of underlying credential source.
 
Methods inherited from class org.opensaml.xml.security.credential.AbstractCriteriaFilteringCredentialResolver
isMeetAllCriteria, isUnevaluableSatisfies, resolve, setMeetAllCriteria, setUnevaluableSatisfies
 
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

FilesystemCredentialResolver

public FilesystemCredentialResolver(String credentialDirectory,
                                    Map<String,String> passwords)
Constructor.

Parameters:
credentialDirectory - directory credential information can be found in
passwords - passwords for encrypted private keys, key is the entity ID, value is the password
Method Detail

resolveFromSource

protected Iterable<Credential> resolveFromSource(CriteriaSet criteriaSet)
Subclasses are required to implement this method to resolve credentials from the implementation-specific type of underlying credential source.

Specified by:
resolveFromSource in class AbstractCriteriaFilteringCredentialResolver
Parameters:
criteriaSet - the set of criteria used to resolve credentials from the credential source
Returns:
an Iterable for the resolved set of credentials


Copyright © 2006-2010 Internet2. All Rights Reserved.