Class JweEncryption


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

      • 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 Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object