Class JweEncryption

java.lang.Object
org.forgerock.json.jose.jwe.JweEncryption

public class JweEncryption extends Object
This class represents the result from the encryption process of the JWT plaintext.
Since:
2.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    JweEncryption(byte[] ciphertext, byte[] authenticationTag)
    Constructs a new JweEncryption object with the given ciphertext and authentication tag.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    byte[]
    Gets the authentication tag from the result of the encryption.
    byte[]
    Gets the ciphertext from the result of the encryption.
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JweEncryption

      public JweEncryption(byte[] ciphertext, byte[] authenticationTag)
      Constructs a new JweEncryption object with the given ciphertext and authentication tag.
      Parameters:
      ciphertext - The ciphertext.
      authenticationTag - The authentication tag.
  • Method Details

    • getCiphertext

      public byte[] getCiphertext()
      Gets the ciphertext from the result of the encryption.
      Returns:
      The ciphertext.
    • getAuthenticationTag

      public byte[] getAuthenticationTag()
      Gets the authentication tag from the result of the encryption.
      Returns:
      The authentication tag.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object