public class FileCertificateRepo extends Object implements org.apache.cxf.xkms.x509.repo.CertificateRepo
Constructor and Description |
---|
FileCertificateRepo(String path) |
Modifier and Type | Method and 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) |
public FileCertificateRepo(String path)
public void saveCertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
saveCertificate
in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
public void saveTrustedCACertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
public void saveCACertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
public void saveCRL(X509CRL crl, org.apache.cxf.xkms.model.xkms.UseKeyWithType id)
public String getCertPath(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType id) throws URISyntaxException
URISyntaxException
public X509Certificate readCertificate(File certFile) throws CertificateException, FileNotFoundException
public X509CRL readCRL(File crlFile) throws FileNotFoundException, CRLException
FileNotFoundException
CRLException
public List<X509Certificate> getTrustedCaCerts()
getTrustedCaCerts
in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
public List<X509Certificate> getCaCerts()
getCaCerts
in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
public List<X509CRL> getCRLs()
getCRLs
in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
public X509Certificate findByServiceName(String serviceName)
findByServiceName
in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
public X509Certificate findByEndpoint(String endpoint)
findByEndpoint
in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
public X509Certificate findBySubjectDn(String subjectDn)
findBySubjectDn
in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
public X509Certificate findByIssuerSerial(String issuer, String serial)
findByIssuerSerial
in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
Apache CXF