Package org.forgerock.json.jose.jwe
Class JweEncryption
java.lang.Object
org.forgerock.json.jose.jwe.JweEncryption
This class represents the result from the encryption process of the JWT plaintext.
- Since:
 - 2.0.0
 
- 
Constructor Summary
ConstructorsConstructorDescriptionJweEncryption(byte[] ciphertext, byte[] authenticationTag) Constructs a new JweEncryption object with the given ciphertext and authentication tag. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Gets the authentication tag from the result of the encryption.byte[]Gets the ciphertext from the result of the encryption.inthashCode() 
- 
Constructor Details
- 
JweEncryption
public JweEncryption(byte[] ciphertext, byte[] authenticationTag) Constructs a new JweEncryption object with the given ciphertext and authentication tag.- Parameters:
 ciphertext- The ciphertext.authenticationTag- The authentication tag.
 
 - 
 - 
Method Details
- 
getCiphertext
public byte[] getCiphertext()Gets the ciphertext from the result of the encryption.- Returns:
 - The ciphertext.
 
 - 
getAuthenticationTag
public byte[] getAuthenticationTag()Gets the authentication tag from the result of the encryption.- Returns:
 - The authentication tag.
 
 - 
equals
 - 
hashCode
public int hashCode() 
 -