| Package | Description |
|---|---|
| be.fgov.ehealth.etee.crypto.decrypt |
Classes for validation and unsealing of sealed message.
|
| be.fgov.ehealth.etee.crypto.encrypt |
Classes for sealing of message and validation of ETKs.
|
| be.fgov.ehealth.etee.crypto.policies |
Contains supported policies and options for configuration of the crypto services.
|
| Modifier and Type | Method and Description |
|---|---|
DataUnsealerBuilder.SecretKeyPolicyStep |
DataUnsealerBuilder.PublicKeyPolicyStep.addPublicKeyPolicy(EncryptionPolicy policy,
EncryptionCredential... credentials)
Configure a public key policy and provide a list of
EncryptionCredentials to be able to decrypt the messages. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
DataSealer.seal(byte[] dataToSeal,
EncryptionCredential... encryptionKeys)
Seals the given message so that it can be exchanged safely with the owner(s) of the given encryption credential(s).
|
void |
DataSealer.seal(java.io.InputStream dataToSeal,
java.io.OutputStream sealedData,
EncryptionCredential... encryptionKeys)
Seals the given message so that it can be exchanged safely with the owner(s) of the given encryption credential(s).
|
| Modifier and Type | Method and Description |
|---|---|
static EncryptionCredential |
EncryptionCredential.create(java.security.PrivateKey privateKey,
java.lang.String keyId)
Factory method to create a new instance of
EncryptionCredential to decrypt data. |
static EncryptionCredential |
EncryptionCredential.create(java.security.PublicKey publicKey,
java.lang.String keyId)
Factory method to create a new instance of
EncryptionCredential to encrypt data with a publicKey. |
static EncryptionCredential |
EncryptionCredential.create(javax.crypto.SecretKey symKey,
java.lang.String keyId)
Factory method to create a new instance of
EncryptionCredential to encrypt data with a symmetric Key. |
static EncryptionCredential |
EncryptionCredential.create(java.security.cert.X509Certificate certificate)
Factory method to create a new instance of
EncryptionCredential to encrypt data with the public key of a certificate. |
static EncryptionCredential[] |
EncryptionCredentials.from(java.util.Map<java.lang.String,java.security.PrivateKey> privateKeyMap)
Creates an array of EncryptionCredentials from a
Map with private keys and their serial number. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.security.PrivateKey> |
EncryptionCredentials.toMap(EncryptionCredential[] credentials)
Create a Map with private keys and their serial numbers from an array of EncryptionCredentials.
|
Copyright © 2021 eHealth. All rights reserved.