public class KeyStore extends Object
| Constructor and Description |
|---|
KeyStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCertificate(String alias,
String certificate) |
void |
addPrivateKey(String alias,
String privateKey,
String certificate,
String password)
Add a private key (plus its certificate chain) to the given key store.
|
KeyStore |
getJavaSecurityKeyStore() |
Map<String,String> |
getPrivateKeyPasswords() |
void |
setCertificates(Map<String,String> certificates) |
public KeyStore getJavaSecurityKeyStore()
public void addPrivateKey(String alias, String privateKey, String certificate, String password)
alias - alias of the keyprivateKey - the private key in Base64 encoded BER format.certificate - the certificate in PEM format, without ---BEGIN CER.... wrapperpassword - password to protect key withCopyright © 2012–2014 SURFnet bv, The Netherlands. All rights reserved.