Class JWECryptoParts
- java.lang.Object
 - 
- org.jboss.resteasy.jose.jwe.crypto.JWECryptoParts
 
 
- 
public final class JWECryptoParts extends Object
The cryptographic parts of a JSON Web Encryption (JWE) object. This class is an immutable simple wrapper for returning the cipher text, initialisation vector (IV), encrypted key and authentication tag implementations.- Version:
 - $version$ (2012-05-05)
 - Author:
 - Vladimir Dzhuvinov
 
 
- 
- 
Constructor Summary
Constructors Constructor Description JWECryptoParts(String encryptedKey, String iv, String cipherText, String authenticationTag)Creates a new cryptograhic JWE parts instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthenticationTag()Gets the authentication tag.StringgetCipherText()Gets the cipher text.StringgetEncryptedKey()Gets the encrypted key.StringgetInitializationVector()Gets the initialisation vector (IV). 
 - 
 
- 
- 
Constructor Detail
- 
JWECryptoParts
public JWECryptoParts(String encryptedKey, String iv, String cipherText, String authenticationTag)
Creates a new cryptograhic JWE parts instance.- Parameters:
 encryptedKey- The encrypted key,nullif not required by the encryption algorithm.iv- The initialisation vector (IV),nullif not required by the encryption algorithm.cipherText- The cipher text. Must not benull.authenticationTag- The authentication tag,nullif the JWE algorithm provides built-in integrity check.
 
 - 
 
- 
Method Detail
- 
getEncryptedKey
public String getEncryptedKey()
Gets the encrypted key.- Returns:
 - The encrypted key, 
nullif not required by the JWE algorithm. 
 
- 
getInitializationVector
public String getInitializationVector()
Gets the initialisation vector (IV).- Returns:
 - The initialisation vector (IV), 
nullif not required by the JWE algorithm. 
 
- 
getCipherText
public String getCipherText()
Gets the cipher text.- Returns:
 - The cipher text.
 
 
- 
getAuthenticationTag
public String getAuthenticationTag()
Gets the authentication tag.- Returns:
 - The authentication tag, 
nullif the encryption algorithm provides built-in integrity checking. 
 
 - 
 
 -