Class EncryptionCore.AsymmetricEncryptionResult

java.lang.Object
org.webpki.crypto.EncryptionCore.AsymmetricEncryptionResult
Enclosing class:
EncryptionCore

public static class EncryptionCore.AsymmetricEncryptionResult extends Object
Return object for ECDH and RSA encryptions.
  • Method Details

    • getContentEncryptionKey

      public byte[] getContentEncryptionKey()
      Get unencrypted content encryption key.
      Returns:
      Content encryption key
    • getEncryptedKey

      public byte[] getEncryptedKey()
      Get encrypted key.

      This element is defined for key wrapping algorithms which currently include all but ECDH-ES.

      Returns:
      Encrypted key or null
    • getEphemeralKey

      public PublicKey getEphemeralKey()
      Get ephemeral key.

      This element is defined for all ECDH* algorithms.

      Returns:
      Ephemeral key or null