public class ParsedCiphertext extends CiphertextHeaders
Please note that the class does not make defensive copies.
NO_MAX_ENCRYPTED_DATA_KEYS| Constructor and Description |
|---|
ParsedCiphertext(byte[] ciphertext)
Parses
ciphertext without enforcing a max EDK count. |
ParsedCiphertext(byte[] ciphertext,
int maxEncryptedDataKeys)
Parses
ciphertext. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getCiphertext()
Returns the raw ciphertext backing this object.
|
int |
getOffset()
The offset at which the first non-header byte in
ciphertext is located. |
deserialize, deserialize, getContentType, getCryptoAlgoId, getEncryptedKeyBlobCount, getEncryptedKeyBlobs, getEncryptionContext, getEncryptionContextLen, getEncryptionContextMap, getFrameLength, getHeaderNonce, getHeaderTag, getMessageId, getNonceLength, getSuiteData, getType, getVersion, isComplete, serializeAuthenticatedFields, setHeaderNonce, setHeaderTag, setSuiteData, toByteArraypublic ParsedCiphertext(byte[] ciphertext,
int maxEncryptedDataKeys)
ciphertext. Please note that this does not make a defensive copy of
ciphertext and that any changes made to the backing array will be reflected here as
well.ciphertext - The ciphertext to parsemaxEncryptedDataKeys - The maximum number of encrypted data keys to parse. Zero indicates
no maximum.public ParsedCiphertext(byte[] ciphertext)
ciphertext without enforcing a max EDK count. Please note that this does
not make a defensive copy of ciphertext and that any changes made to the
backing array will be reflected here as well.Copyright © 2023. All rights reserved.