xades4j.utils
Class FileSystemDirectoryCertStore

java.lang.Object
  extended by xades4j.utils.FileSystemDirectoryCertStore

public class FileSystemDirectoryCertStore
extends Object

Creates a CertStore from the contents of a file-system directory. The directories are recusively searched for X509 certificates or CRLs files that have one of the specified extensions.

Author:
Luís

Constructor Summary
FileSystemDirectoryCertStore(String dirPath)
          Creates a new instance over a directory.
FileSystemDirectoryCertStore(String dirPath, String[] certsFilesExts, String[] crlsFilesExts)
          Creates a new instance over a directory using the specified extensions
 
Method Summary
 CertStore getStore()
          Gets the CertStore resulting from this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemDirectoryCertStore

public FileSystemDirectoryCertStore(String dirPath)
                             throws CertificateException,
                                    CRLException
Creates a new instance over a directory. The cer and crt extesions are considered for certificates and crl for CRLs.

Parameters:
dirPath - the path for the base directory
Throws:
CertificateException - if there's an error reading the certificates
CRLException - if there's an error reading the CRLs

FileSystemDirectoryCertStore

public FileSystemDirectoryCertStore(String dirPath,
                                    String[] certsFilesExts,
                                    String[] crlsFilesExts)
                             throws CertificateException,
                                    CRLException
Creates a new instance over a directory using the specified extensions

Parameters:
dirPath - the path for the base directory
certsFilesExts - extensions for included certificate files
crlsFilesExts - extensions for included CRL files
Throws:
CertificateException - if there's an error reading the certificates
CRLException - if there's an error reading the CRLs
Method Detail

getStore

public CertStore getStore()
Gets the CertStore resulting from this instance.

Returns:
the CertStore containing all the certificates and CRLs that were found


Copyright © 2012. All Rights Reserved.