org.apache.cxf.xkms.x509.repo.file
Class FileCertificateRepo
java.lang.Object
org.apache.cxf.xkms.x509.repo.file.FileCertificateRepo
- All Implemented Interfaces:
- CertificateRepo
public class FileCertificateRepo
- extends Object
- implements CertificateRepo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileCertificateRepo
public FileCertificateRepo(String path)
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