Class FileCertificateRepo
- java.lang.Object
-
- org.apache.cxf.xkms.x509.repo.file.FileCertificateRepo
-
- All Implemented Interfaces:
CertificateRepo
public class FileCertificateRepo extends Object implements CertificateRepo
-
-
Constructor Summary
Constructors Constructor Description FileCertificateRepo(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconvertIdForFileSystem(String dn)X509CertificatefindByEndpoint(String endpoint)X509CertificatefindByIssuerSerial(String issuer, String serial)X509CertificatefindByServiceName(String serviceName)X509CertificatefindBySubjectDn(String subjectDn)List<X509Certificate>getCaCerts()StringgetCertPath(X509Certificate cert, UseKeyWithType id)List<X509CRL>getCRLs()List<X509Certificate>getTrustedCaCerts()X509CertificatereadCertificate(File certFile)X509CRLreadCRL(File crlFile)voidsaveCACertificate(X509Certificate cert, UseKeyWithType id)voidsaveCertificate(X509Certificate cert, UseKeyWithType id)voidsaveCRL(X509CRL crl, UseKeyWithType id)voidsaveTrustedCACertificate(X509Certificate cert, UseKeyWithType id)
-
-
-
Constructor Detail
-
FileCertificateRepo
public FileCertificateRepo(String path)
-
-
Method Detail
-
saveCertificate
public void saveCertificate(X509Certificate cert, UseKeyWithType id)
- Specified by:
saveCertificatein interfaceCertificateRepo
-
saveTrustedCACertificate
public void saveTrustedCACertificate(X509Certificate cert, UseKeyWithType id)
-
saveCACertificate
public void saveCACertificate(X509Certificate cert, UseKeyWithType id)
-
saveCRL
public void saveCRL(X509CRL crl, UseKeyWithType id)
-
getCertPath
public String getCertPath(X509Certificate cert, UseKeyWithType id) throws URISyntaxException
- Throws:
URISyntaxException
-
readCertificate
public X509Certificate readCertificate(File certFile) throws CertificateException, FileNotFoundException, IOException
-
readCRL
public X509CRL readCRL(File crlFile) throws FileNotFoundException, CRLException, IOException
-
getTrustedCaCerts
public List<X509Certificate> getTrustedCaCerts()
- Specified by:
getTrustedCaCertsin interfaceCertificateRepo
-
getCaCerts
public List<X509Certificate> getCaCerts()
- Specified by:
getCaCertsin interfaceCertificateRepo
-
getCRLs
public List<X509CRL> getCRLs()
- Specified by:
getCRLsin interfaceCertificateRepo
-
findByServiceName
public X509Certificate findByServiceName(String serviceName)
- Specified by:
findByServiceNamein interfaceCertificateRepo
-
findByEndpoint
public X509Certificate findByEndpoint(String endpoint)
- Specified by:
findByEndpointin interfaceCertificateRepo
-
findBySubjectDn
public X509Certificate findBySubjectDn(String subjectDn)
- Specified by:
findBySubjectDnin interfaceCertificateRepo
-
findByIssuerSerial
public X509Certificate findByIssuerSerial(String issuer, String serial)
- Specified by:
findByIssuerSerialin interfaceCertificateRepo
-
-