nl.surfnet.spring.security.opensaml
Class KeyStore
java.lang.Object
nl.surfnet.spring.security.opensaml.KeyStore
public class KeyStore
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStore
public KeyStore()
setCertificates
public void setCertificates(Map<String,String> certificates)
getJavaSecurityKeyStore
public KeyStore getJavaSecurityKeyStore()
addPrivateKey
public void addPrivateKey(String alias,
String privateKey,
String certificate,
String password)
- Add a private key (plus its certificate chain) to the given key store.
- Parameters:
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 with
addCertificate
public void addCertificate(String alias,
String certificate)
getPrivateKeyPasswords
public Map<String,String> getPrivateKeyPasswords()
Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.