public interface ICertificateManager
Modifier and Type | Field and Description |
---|---|
static String |
CERTIFICATE_MAPPER_IMPL
Prefix for System property which identifies custom implementations of certificate mappers.
|
Modifier and Type | Method and Description |
---|---|
ICertificate |
createCertificate(X509Certificate x509Certificate,
String type)
Creates new certificate of the given type.
|
void |
deleteCertificate(String certificateID)
Deletes specified certificate from the database
|
ICertificate |
getCertificateByID(String certificateID)
Returns ICertificate by its ID
|
ICertificate |
getCertificateByX509(X509Certificate x509Certificate)
Takes X509 certificate and return a matching SSL (default) type ICertificate object or null of not found
|
ICertificate |
getCertificateByX509(X509Certificate x509Certificate,
String type)
Takes X509 certificate and its type and return a matching ICertificate object or null of not found
|
ICertificateMapper |
getCertificateMapper()
Returns instance of default certificate mapper implementation
|
List |
getCertificatesByIssuerSerial(String issuerDN,
String serialNumber,
String type)
Gets certificates for given issuerDN and serial number.
|
List |
getCertificatesBySKI(byte[] ski,
String type)
Gets certificates list for the given SubjectKeyIdentifier extension value
|
List |
getCertificatesBySubjectDN(String subjectDN,
String type)
Gets certificates list for given subjectDN value
|
List |
getCertificatesByThumbprint(byte[] thumbprint,
String type)
Gets certificates list for the given SubjectKeyIdentifier extension value
|
List |
listCertificates()
Lists all stored certificates
|
void |
updateCertificate(String certificateID,
X509Certificate x509Certificate,
String type)
Updates existing certificate preserving all its mappings
|
static final String CERTIFICATE_MAPPER_IMPL
ICertificate getCertificateByX509(X509Certificate x509Certificate) throws DirectoryException
x509Certificate
- DirectoryException
ICertificate getCertificateByX509(X509Certificate x509Certificate, String type) throws DirectoryException
x509Certificate
- type
- certificate type. See ICertificate
for type constantsDirectoryException
ICertificate getCertificateByID(String certificateID) throws DirectoryException
certificateID
- certificate ID to retrieveDirectoryException
List getCertificatesByIssuerSerial(String issuerDN, String serialNumber, String type) throws DirectoryException
issuerDN
- issuer DN String valueserialNumber
- serial number String valuetype
- type of the certificates to return. Specifying null will return certificates of any type. See ICertificate
for type constantsDirectoryException
List getCertificatesBySubjectDN(String subjectDN, String type) throws DirectoryException
subjectDN
- String value of subject DNtype
- type of the certificates to return. Specifying null will return certificates of any type. See ICertificate
for type constantsDirectoryException
List getCertificatesBySKI(byte[] ski, String type) throws DirectoryException
ski
- byte[] value of SubjectKeyIdentifiertype
- type of the certificates to return. Specifying null will return certificates of any type. See ICertificate
for type constantsDirectoryException
List getCertificatesByThumbprint(byte[] thumbprint, String type) throws DirectoryException
thumbprint
- byte[] value of certificate thumbprint (SHA-1 hash value of certificate)type
- type of the certificates to return. Specifying null will return certificates of any type. See ICertificate
for type constantsDirectoryException
List listCertificates() throws DirectoryException
DirectoryException
ICertificate createCertificate(X509Certificate x509Certificate, String type) throws DirectoryException
x509Certificate
- type
- certificate type, see ICertificate
for type constantsDirectoryException
void updateCertificate(String certificateID, X509Certificate x509Certificate, String type) throws DirectoryException
certificateID
- ID of an existing certificate.x509Certificate
- new X509 cert to updatetype
- certificate type, see ICertificate
for type constantsDirectoryException
void deleteCertificate(String certificateID) throws DirectoryException
certificateID
- certificate ID to deleteDirectoryException
ICertificateMapper getCertificateMapper() throws DirectoryException
DirectoryException