Class FileCertificateRepo
- java.lang.Object
-
- org.apache.cxf.xkms.x509.repo.file.FileCertificateRepo
-
- All Implemented Interfaces:
org.apache.cxf.xkms.x509.repo.CertificateRepo
public class FileCertificateRepo extends Object implements org.apache.cxf.xkms.x509.repo.CertificateRepo
-
-
Constructor Summary
Constructors Constructor Description FileCertificateRepo(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
List<X509CRL>
getCRLs()
List<X509Certificate>
getTrustedCaCerts()
X509Certificate
readCertificate(File certFile)
X509CRL
readCRL(File crlFile)
void
saveCACertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
void
saveCertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
void
saveCRL(X509CRL crl, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
void
saveTrustedCACertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
-
-
-
Constructor Detail
-
FileCertificateRepo
public FileCertificateRepo(String path)
-
-
Method Detail
-
saveCertificate
public void saveCertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
- Specified by:
saveCertificate
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
saveTrustedCACertificate
public void saveTrustedCACertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
-
saveCACertificate
public void saveCACertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
-
saveCRL
public void saveCRL(X509CRL crl, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
-
getCertPath
public String getCertPath(X509Certificate cert, org.apache.cxf.xkms.model.xkms.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:
getTrustedCaCerts
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
getCaCerts
public List<X509Certificate> getCaCerts()
- Specified by:
getCaCerts
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
getCRLs
public List<X509CRL> getCRLs()
- Specified by:
getCRLs
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
findByServiceName
public X509Certificate findByServiceName(String serviceName)
- Specified by:
findByServiceName
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
findByEndpoint
public X509Certificate findByEndpoint(String endpoint)
- Specified by:
findByEndpoint
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
findBySubjectDn
public X509Certificate findBySubjectDn(String subjectDn)
- Specified by:
findBySubjectDn
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
findByIssuerSerial
public X509Certificate findByIssuerSerial(String issuer, String serial)
- Specified by:
findByIssuerSerial
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
-