Apache CXF API

org.apache.cxf.xkms.x509.repo.file
Class FileCertificateRepo

java.lang.Object
  extended by org.apache.cxf.xkms.x509.repo.file.FileCertificateRepo
All Implemented Interfaces:
CertificateRepo

public class FileCertificateRepo
extends Object
implements CertificateRepo


Constructor Summary
FileCertificateRepo(String path)
           
 
Method Summary
 String convertIdForFileSystem(String dn)
           
 X509Certificate findByEndpoint(String endpoint)
           
 X509Certificate findByIssuerSerial(String issuer, String serial)
           
 X509Certificate findByServiceName(String serviceName)
           
 X509Certificate findBySubjectDn(String subjectDn)
           
 List<X509Certificate> getCaCerts()
           
 String getCertPath(X509Certificate cert, UseKeyWithType id)
           
 List<X509CRL> getCRLs()
           
 List<X509Certificate> getTrustedCaCerts()
           
 X509Certificate readCertificate(File certFile)
           
 X509CRL readCRL(File crlFile)
           
 void saveCACertificate(X509Certificate cert, UseKeyWithType id)
           
 void saveCertificate(X509Certificate cert, UseKeyWithType id)
           
 void saveCRL(X509CRL crl, UseKeyWithType id)
           
 void saveTrustedCACertificate(X509Certificate cert, UseKeyWithType id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCertificateRepo

public FileCertificateRepo(String path)
Method Detail

saveCertificate

public void saveCertificate(X509Certificate cert,
                            UseKeyWithType id)
Specified by:
saveCertificate in interface CertificateRepo

saveTrustedCACertificate

public void saveTrustedCACertificate(X509Certificate cert,
                                     UseKeyWithType id)

saveCACertificate

public void saveCACertificate(X509Certificate cert,
                              UseKeyWithType id)

saveCRL

public void saveCRL(X509CRL crl,
                    UseKeyWithType id)

convertIdForFileSystem

public String convertIdForFileSystem(String dn)

getCertPath

public String getCertPath(X509Certificate cert,
                          UseKeyWithType id)
                   throws URISyntaxException
Throws:
URISyntaxException

readCertificate

public X509Certificate readCertificate(File certFile)
                                throws CertificateException,
                                       FileNotFoundException
Throws:
CertificateException
FileNotFoundException

readCRL

public X509CRL readCRL(File crlFile)
                throws FileNotFoundException,
                       CRLException
Throws:
FileNotFoundException
CRLException

getTrustedCaCerts

public List<X509Certificate> getTrustedCaCerts()
Specified by:
getTrustedCaCerts in interface CertificateRepo

getCaCerts

public List<X509Certificate> getCaCerts()
Specified by:
getCaCerts in interface CertificateRepo

getCRLs

public List<X509CRL> getCRLs()
Specified by:
getCRLs in interface CertificateRepo

findByServiceName

public X509Certificate findByServiceName(String serviceName)
Specified by:
findByServiceName in interface CertificateRepo

findByEndpoint

public X509Certificate findByEndpoint(String endpoint)
Specified by:
findByEndpoint in interface CertificateRepo

findBySubjectDn

public X509Certificate findBySubjectDn(String subjectDn)
Specified by:
findBySubjectDn in interface CertificateRepo

findByIssuerSerial

public X509Certificate findByIssuerSerial(String issuer,
                                          String serial)
Specified by:
findByIssuerSerial in interface CertificateRepo

Apache CXF API

Apache CXF