nl.surfnet.coin.selfservice.service.impl.ssl
Class KeyStoreMock
java.lang.Object
nl.surfnet.coin.selfservice.service.impl.ssl.KeyStore
nl.surfnet.coin.selfservice.service.impl.ssl.KeyStoreMock
public class KeyStoreMock
- extends KeyStore
Mock implementation of the keystore, used in the mock implementation of the
LMNGservice
Doesn't do a thing
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStoreMock
public KeyStoreMock(boolean activeMode)
KeyStoreMock
public KeyStoreMock(String privateKey,
String password,
String certificate,
boolean activeMode)
- Constructor for private keys (keystore)
- Parameters:
privateKey - password - certificate -
setCertificates
public void setCertificates(Map<String,String> certificates)
- Overrides:
setCertificates in class KeyStore
getJavaSecurityKeyStore
public KeyStore getJavaSecurityKeyStore()
- Overrides:
getJavaSecurityKeyStore in class KeyStore
addPrivateKey
public void addPrivateKey(String alias,
String privateKey,
String certificate,
String password)
addCertificate
public void addCertificate(String alias,
String certificate)
getPrivateKeyPasswords
public Map<String,String> getPrivateKeyPasswords()
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.