nl.surfnet.spring.security.opensaml
Class KeyStore

java.lang.Object
  extended by nl.surfnet.spring.security.opensaml.KeyStore

public class KeyStore
extends Object


Constructor Summary
KeyStore()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyStore

public KeyStore()
Method Detail

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 key
privateKey - the private key in Base64 encoded BER format.
certificate - the certificate in PEM format, without ---BEGIN CER.... wrapper
password - 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.