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
ConstructorsConstructorDescriptionJWECryptoParts(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,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 Details
-
getEncryptedKey
Gets the encrypted key.- Returns:
- The encrypted key,
nullif not required by the JWE algorithm.
-
getInitializationVector
Gets the initialisation vector (IV).- Returns:
- The initialisation vector (IV),
nullif not required by the JWE algorithm.
-
getCipherText
Gets the cipher text.- Returns:
- The cipher text.
-
getAuthenticationTag
Gets the authentication tag.- Returns:
- The authentication tag,
nullif the encryption algorithm provides built-in integrity checking.
-