## Uses of Class
be.fgov.ehealth.etee.crypto.policies.EncryptionCredential

- Packages that use EncryptionCredential
  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.

- - ### Uses of EncryptionCredential in be.fgov.ehealth.etee.crypto.decrypt

    Methods in be.fgov.ehealth.etee.crypto.decrypt with parameters of type EncryptionCredential
    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 `EncryptionCredential`s to be able to decrypt the messages.

  - ### Uses of EncryptionCredential in be.fgov.ehealth.etee.crypto.encrypt

    Methods in be.fgov.ehealth.etee.crypto.encrypt with parameters of type EncryptionCredential
    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).

  - ### Uses of EncryptionCredential in be.fgov.ehealth.etee.crypto.policies

    Methods in be.fgov.ehealth.etee.crypto.policies that return EncryptionCredential
    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.

    Methods in be.fgov.ehealth.etee.crypto.policies with parameters of type EncryptionCredential
    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 © 2025 eHealth. All rights reserved.