Package com.nimbusds.jose.crypto.impl
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:
- 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.
-
-
-
Constructor Detail
-
AuthenticatedCipherText
public AuthenticatedCipherText(byte[] cipherText, byte[] authenticationTag)
Creates a new authenticated cipher text.- Parameters:
cipherText
- The cipher text. Must not benull
.authenticationTag
- The authentication tag. Must not benull
.
-
-
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.
-
-