public interface KeyStoreManagementService
| Modifier and Type | Method and Description |
|---|---|
void |
addCertificate(String tenantDomain,
String alias,
String certificate)
Imports the certificate to the keystore.
|
void |
deleteCertificate(String tenantDomain,
String alias)
Deletes the certificate from the keystore.
|
X509Certificate |
getClientCertificate(String tenantDomain,
String alias)
Retrieves the certificate of the given alias from the client truststore.
|
List<String> |
getClientCertificateAliases(String tenantDomain,
String filter)
Retrieves the list of certificate aliases from the client truststore.
|
X509Certificate |
getKeyStoreCertificate(String tenantDomain,
String alias)
Retrieves the certificate of the given alias from the keystore.
|
List<String> |
getKeyStoreCertificateAliases(String tenantDomain,
String filter)
Retrieves the list of certificate aliases from the keystore.
|
Map<String,X509Certificate> |
getPublicCertificate(String tenantDomain)
Retrieves the public certificate from the keystore.
|
List<String> getKeyStoreCertificateAliases(String tenantDomain, String filter) throws KeyStoreManagementException
tenantDomain - tenant domain of the keystore.filter - used to filter the result. Supports sw, ew, eq & co. eg:filter=alias+sw+wso2.List of alias.KeyStoreManagementException - when retrieving the certificate aliases failed.Map<String,X509Certificate> getPublicCertificate(String tenantDomain) throws KeyStoreManagementException
tenantDomain - tenant domain of the keystore.Map with public key alias and X509Certificate.KeyStoreManagementException - when retrieving the public certificate.X509Certificate getKeyStoreCertificate(String tenantDomain, String alias) throws KeyStoreManagementException
tenantDomain - tenant domain of the keystore.alias - of the certificate.X509CertificateKeyStoreManagementException - when retrieving the certificate failed.List<String> getClientCertificateAliases(String tenantDomain, String filter) throws KeyStoreManagementException
tenantDomain - tenant domain of the keystore.filter - used to filter the result. Supports sw, ew, eq & co. eg:filter=alias+sw+wso2.List of aliasKeyStoreManagementException - when retrieving the certificate aliases failed.X509Certificate getClientCertificate(String tenantDomain, String alias) throws KeyStoreManagementException
tenantDomain - tenant domain of the keystore.alias - of the certificate.X509CertificateKeyStoreManagementException - when retrieving the certificate failed.void addCertificate(String tenantDomain, String alias, String certificate) throws KeyStoreManagementException
tenantDomain - tenant domain of the keystore.alias - of the certificate.certificate - the certificate to be imported.KeyStoreManagementException - when importing the certificate failed.void deleteCertificate(String tenantDomain, String alias) throws KeyStoreManagementException
tenantDomain - tenant domain of the keystore.alias - of the certificate.KeyStoreManagementException - when importing the certificate failed.Copyright © 2020 WSO2. All rights reserved.