Constructor and Description |
---|
KeyStoreManager()
Create an empty PKCS12 KeyStore.
|
KeyStoreManager(String storeType)
Creates a empty KeyStore based on the given storeType.
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthenticationChain(char[] passwd,
X509Certificate... chain)
Add the X509Certificate chain to the keystore, the alias of the actuele certificate is "authentication".
|
void |
addAuthenticationKeyPair(KeyPair entry,
char[] passwd)
Add the authentication keypair to the keystore, a dummy X509Certificate will be generated.
|
void |
addEncryptionToken(KeyPair entry,
char[] passwd,
X509Certificate etkCert)
Add the EncryptionToken to the keystore, the alias will be the hex value of the serialnumber.
|
void |
load(char[] passwd,
byte[] content)
Load content from another keystore of the same type into the new one.
|
void |
store(String location,
char[] passwd)
Store the keystore to the given location with the given password.
|
public KeyStoreManager()
public KeyStoreManager(String storeType)
public void load(char[] passwd, byte[] content)
public void addAuthenticationChain(char[] passwd, X509Certificate... chain) throws TechnicalConnectorException
TechnicalConnectorException
public void addEncryptionToken(KeyPair entry, char[] passwd, X509Certificate etkCert) throws TechnicalConnectorException
TechnicalConnectorException
public void addAuthenticationKeyPair(KeyPair entry, char[] passwd) throws TechnicalConnectorException
TechnicalConnectorException
public void store(String location, char[] passwd) throws TechnicalConnectorException
TechnicalConnectorException
Connector Packaging TECHNICAL 4.4.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.