Class AuthenticatedCipherText

java.lang.Object
com.nimbusds.jose.crypto.impl.AuthenticatedCipherText

@Immutable public final class AuthenticatedCipherText extends Object
Authenticated cipher text. This class is immutable.
Version:
2024-04-20
Author:
Vladimir Dzhuvinov
  • Constructor Details

    • AuthenticatedCipherText

      public AuthenticatedCipherText(byte[] cipherText, byte[] authenticationTag)
      Creates a new authenticated cipher text.
      Parameters:
      cipherText - The cipher text. Must not be null.
      authenticationTag - The authentication tag. Must not be null.
  • Method Details

    • getCipherText

      public byte[] getCipherText()
      Gets the cipher text.
      Returns:
      The cipher text.
    • getAuthenticationTag

      public byte[] getAuthenticationTag()
      Gets the authentication tag.
      Returns:
      The authentication tag.