public class FileCertificateRepo extends Object implements 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,
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) |
public FileCertificateRepo(String path)
public void saveCertificate(X509Certificate cert, UseKeyWithType id)
saveCertificate in interface CertificateRepopublic void saveTrustedCACertificate(X509Certificate cert, UseKeyWithType id)
public void saveCACertificate(X509Certificate cert, UseKeyWithType id)
public void saveCRL(X509CRL crl, UseKeyWithType id)
public String getCertPath(X509Certificate cert, UseKeyWithType id) throws URISyntaxException
URISyntaxExceptionpublic X509Certificate readCertificate(File certFile) throws CertificateException, FileNotFoundException
public X509CRL readCRL(File crlFile) throws FileNotFoundException, CRLException
FileNotFoundExceptionCRLExceptionpublic List<X509Certificate> getTrustedCaCerts()
getTrustedCaCerts in interface CertificateRepopublic List<X509Certificate> getCaCerts()
getCaCerts in interface CertificateRepopublic List<X509CRL> getCRLs()
getCRLs in interface CertificateRepopublic X509Certificate findByServiceName(String serviceName)
findByServiceName in interface CertificateRepopublic X509Certificate findByEndpoint(String endpoint)
findByEndpoint in interface CertificateRepopublic X509Certificate findBySubjectDn(String subjectDn)
findBySubjectDn in interface CertificateRepopublic X509Certificate findByIssuerSerial(String issuer, String serial)
findByIssuerSerial in interface CertificateRepoApache CXF