Class AuthenticatedCipherText


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

      Constructors 
      Constructor Description
      AuthenticatedCipherText​(byte[] cipherText, byte[] authenticationTag)
      Creates a new authenticated cipher text.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getAuthenticationTag()
      Gets the authentication tag.
      byte[] getCipherText()
      Gets the cipher text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.