|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ESKeyStoreManager
The EMFStore key store manager that is used to managed certificates and their aliases.
Method Summary | |
---|---|
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. |
Method Detail |
---|
void addCertificate(String alias, String path) throws ESCertificateException
alias
- alias for the certificatepath
- path to the certificate file
ESCertificateException
- 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 check
true
if a certificate with the given alias exists, false
otherwise
ESCertificateException
- in case of failure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |