public class KeyStoreManagementServiceImpl extends Object implements KeyStoreManagementService
| Constructor and Description |
|---|
KeyStoreManagementServiceImpl() |
| 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.
|
public List<String> getKeyStoreCertificateAliases(String tenantDomain, String filter) throws KeyStoreManagementException
KeyStoreManagementServicegetKeyStoreCertificateAliases in interface KeyStoreManagementServicetenantDomain - 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.public Map<String,X509Certificate> getPublicCertificate(String tenantDomain) throws KeyStoreManagementException
KeyStoreManagementServicegetPublicCertificate in interface KeyStoreManagementServicetenantDomain - tenant domain of the keystore.Map with public key alias and X509Certificate.KeyStoreManagementException - when retrieving the public certificate.public X509Certificate getKeyStoreCertificate(String tenantDomain, String alias) throws KeyStoreManagementException
KeyStoreManagementServicegetKeyStoreCertificate in interface KeyStoreManagementServicetenantDomain - tenant domain of the keystore.alias - of the certificate.X509CertificateKeyStoreManagementException - when retrieving the certificate failed.public List<String> getClientCertificateAliases(String tenantDomain, String filter) throws KeyStoreManagementException
KeyStoreManagementServicegetClientCertificateAliases in interface KeyStoreManagementServicetenantDomain - 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.public X509Certificate getClientCertificate(String tenantDomain, String alias) throws KeyStoreManagementException
KeyStoreManagementServicegetClientCertificate in interface KeyStoreManagementServicetenantDomain - tenant domain of the keystore.alias - of the certificate.X509CertificateKeyStoreManagementException - when retrieving the certificate failed.public void addCertificate(String tenantDomain, String alias, String certificate) throws KeyStoreManagementException
KeyStoreManagementServiceaddCertificate in interface KeyStoreManagementServicetenantDomain - tenant domain of the keystore.alias - of the certificate.certificate - the certificate to be imported.KeyStoreManagementException - when importing the certificate failed.public void deleteCertificate(String tenantDomain, String alias) throws KeyStoreManagementException
KeyStoreManagementServicedeleteCertificate in interface KeyStoreManagementServicetenantDomain - tenant domain of the keystore.alias - of the certificate.KeyStoreManagementException - when importing the certificate failed.Copyright © 2020 WSO2. All rights reserved.