Class AuthenticatedCipherText


  • @Immutable
    public final class AuthenticatedCipherText
    extends Object
    Authenticated cipher text. This class is immutable.
    Version:
    2013-05-06
    Author:
    Vladimir Dzhuvinov
    • Constructor Detail

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

      • getCipherText

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

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