Package com.nimbusds.jose.crypto.impl
Class AuthenticatedCipherText
java.lang.Object
com.nimbusds.jose.crypto.impl.AuthenticatedCipherText
Authenticated cipher text. This class is immutable.
- Version:
- 2024-04-20
- Author:
- Vladimir Dzhuvinov
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticatedCipherText
(byte[] cipherText, byte[] authenticationTag) Creates a new authenticated cipher text. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets the authentication tag.byte[]
Gets the cipher text.
-
Constructor Details
-
AuthenticatedCipherText
Creates a new authenticated cipher text.- Parameters:
cipherText
- The cipher text. Must not benull
.authenticationTag
- The authentication tag. Must not benull
.
-
-
Method Details
-
getCipherText
Gets the cipher text.- Returns:
- The cipher text.
-
getAuthenticationTag
Gets the authentication tag.- Returns:
- The authentication tag.
-