be.fgov.ehealth.etee.crypto.policies

## Class EncryptionCredentials

- java.lang.Object
- - be.fgov.ehealth.etee.crypto.policies.EncryptionCredentials

-     public final class EncryptionCredentials
      extends java.lang.Object

  A utility class to create EncryptionCredentials from a `Map` with private keys and their serial numbers.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static EncryptionCredential[]` | `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.
    `static java.util.Map<java.lang.String,java.security.PrivateKey>` | `toMap(EncryptionCredential[] credentials)` Create a Map with private keys and their serial numbers from an array of EncryptionCredentials.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### from

          public static EncryptionCredential[] 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.
      Parameters:
        `privateKeyMap` - A map with private keys and their serial number.
      Returns:
        An array of encryption credentials.

    - #### toMap

          public static java.util.Map<java.lang.String,java.security.PrivateKey> toMap(EncryptionCredential[] credentials)

      Create a Map with private keys and their serial numbers from an array of EncryptionCredentials.
      Parameters:
        `credentials` - An array of encryption credentials.
      Returns:
        A map with private keys and their serial number.

Copyright © 2021 eHealth. All rights reserved.