@Immutable public final class JWECryptoParts extends Object
JWEEncrypter
implementations.Constructor and Description |
---|
JWECryptoParts(Base64URL encryptedKey,
Base64URL iv,
Base64URL cipherText,
Base64URL authenticationTag)
Creates a new cryptographic JWE parts instance.
|
JWECryptoParts(JWEHeader header,
Base64URL encryptedKey,
Base64URL iv,
Base64URL cipherText,
Base64URL authenticationTag)
Creates a new cryptographic JWE parts instance.
|
Modifier and Type | Method and Description |
---|---|
Base64URL |
getAuthenticationTag()
Gets the authentication tag.
|
Base64URL |
getCipherText()
Gets the cipher text.
|
Base64URL |
getEncryptedKey()
Gets the encrypted key.
|
JWEHeader |
getHeader()
Gets the modified JWE header.
|
Base64URL |
getInitializationVector()
Gets the initialisation vector (IV).
|
public JWECryptoParts(Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authenticationTag)
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 be null
.authenticationTag
- The authentication tag, null
if the
JWE algorithm provides built-in integrity
check.public JWECryptoParts(JWEHeader header, Base64URL encryptedKey, Base64URL iv, Base64URL cipherText, Base64URL authenticationTag)
header
- The modified JWE header, null
if
not.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 be null
.authenticationTag
- The authentication tag, null
if the
JWE algorithm provides built-in integrity
check.public JWEHeader getHeader()
null
of not.public Base64URL getEncryptedKey()
null
if not required by
the JWE algorithm.public Base64URL getInitializationVector()
null
if not required
by the JWE algorithm.public Base64URL getCipherText()
public Base64URL getAuthenticationTag()
null
if the encryption
algorithm provides built-in integrity checking.Copyright © 2017 Connect2id Ltd.. All rights reserved.