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 CertificateRepo
public 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
URISyntaxException
public X509Certificate readCertificate(File certFile) throws CertificateException, FileNotFoundException, IOException
public X509CRL readCRL(File crlFile) throws FileNotFoundException, CRLException, IOException
public List<X509Certificate> getTrustedCaCerts()
getTrustedCaCerts
in interface CertificateRepo
public List<X509Certificate> getCaCerts()
getCaCerts
in interface CertificateRepo
public List<X509CRL> getCRLs()
getCRLs
in interface CertificateRepo
public X509Certificate findByServiceName(String serviceName)
findByServiceName
in interface CertificateRepo
public X509Certificate findByEndpoint(String endpoint)
findByEndpoint
in interface CertificateRepo
public X509Certificate findBySubjectDn(String subjectDn)
findBySubjectDn
in interface CertificateRepo
public X509Certificate findByIssuerSerial(String issuer, String serial)
findByIssuerSerial
in interface CertificateRepo
Apache CXF