public interface ESKeyStoreManager
| Modifier and Type | Method and Description |
|---|---|
void |
addCertificate(String alias,
InputStream certificate)
Adds a certificate to the KeyStore.
|
void |
addCertificate(String alias,
String path)
Adds a certificate to the KeyStore.
|
boolean |
certificateExists(String alias)
Checks whether a certificate for a given alias exists.
|
String |
getDefaultCertificate()
Returns the default certificate alias.
|
void |
setDefaultCertificate(String defaultCertificate)
Sets the alias for the default certificate.
|
void addCertificate(String alias, String path) throws ESCertificateException
alias - alias for the certificatepath - path to the certificate fileESCertificateException - if problems occur with storing, accessing or identifying the certificatevoid addCertificate(String alias, InputStream certificate) throws ESCertificateException
alias - alias for the certificatecertificate - InputStream delivering the certificate. Stream is used by
CertificateFactory.generateCertificate(InputStream).ESCertificateException - if problems occur with storing, accessing or identifying the certificateString getDefaultCertificate()
void setDefaultCertificate(String defaultCertificate)
defaultCertificate - certificate alias, use null to unset the currently set default certificateboolean certificateExists(String alias) throws ESCertificateException
alias - the alias which needs to be checktrue if a certificate with the given alias exists, false otherwiseESCertificateException - in case of failureCopyright © 2017. All rights reserved.