Class JWECryptoParts
java.lang.Object
org.jboss.resteasy.jose.jwe.crypto.JWECryptoParts
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
ConstructorDescriptionJWECryptoParts
(String encryptedKey, String iv, String cipherText, String authenticationTag) Creates a new cryptograhic JWE parts instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the authentication tag.Gets the cipher text.Gets the encrypted key.Gets the initialisation vector (IV).
-
Constructor Details
-
JWECryptoParts
Creates a new cryptograhic JWE parts instance.- Parameters:
encryptedKey
- The encrypted key,null
if not required by the encryption algorithm.iv
- The initialisation vector (IV),null
if not required by the encryption algorithm.cipherText
- The cipher text. Must not benull
.authenticationTag
- The authentication tag,null
if the JWE algorithm provides built-in integrity check.
-
-
Method Details
-
getEncryptedKey
Gets the encrypted key.- Returns:
- The encrypted key,
null
if not required by the JWE algorithm.
-
getInitializationVector
Gets the initialisation vector (IV).- Returns:
- The initialisation vector (IV),
null
if not required by the JWE algorithm.
-
getCipherText
-
getAuthenticationTag
Gets the authentication tag.- Returns:
- The authentication tag,
null
if the encryption algorithm provides built-in integrity checking.
-