org.opensaml.xml.security.credential
Class FilesystemCredentialResolver
java.lang.Object
org.opensaml.xml.security.credential.AbstractCredentialResolver
org.opensaml.xml.security.credential.AbstractCriteriaFilteringCredentialResolver
org.opensaml.xml.security.credential.FilesystemCredentialResolver
- All Implemented Interfaces:
- CredentialResolver, Resolver<Credential,CriteriaSet>
public class FilesystemCredentialResolver
- extends AbstractCriteriaFilteringCredentialResolver
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:
- .name - for key names. File must contain a carriage return seperated list of key names
- .priv - for private key. File must contain one PEM or DER encoded private key
- .pub - for public keys. File must contain one or more PEM or DER encoded private key
- .crt - for public certificates. File must contain one or more PEM or DER encoded X.509 certificates
- .crl - for certificate revocation lists. File must contain one or more CRLs
Constructor Summary |
FilesystemCredentialResolver(java.lang.String credentialDirectory,
java.util.Map<java.lang.String,java.lang.String> passwords)
Constructor. |
Method Summary |
protected java.lang.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilesystemCredentialResolver
public FilesystemCredentialResolver(java.lang.String credentialDirectory,
java.util.Map<java.lang.String,java.lang.String> passwords)
- Constructor.
- Parameters:
credentialDirectory
- directory credential information can be found inpasswords
- passwords for encrypted private keys, key is the entity ID, value is the password
resolveFromSource
protected java.lang.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-2011 Internet2. All Rights Reserved.