Class AgileEncryptionHeader
java.lang.Object
org.docx4j.org.apache.poi.poifs.crypt.EncryptionHeader
org.docx4j.org.apache.poi.poifs.crypt.agile.AgileEncryptionHeader
public class AgileEncryptionHeader extends EncryptionHeader
-
Field Summary
Fields inherited from class org.docx4j.org.apache.poi.poifs.crypt.EncryptionHeader
ALGORITHM_AES_128, ALGORITHM_AES_192, ALGORITHM_AES_256, ALGORITHM_RC4, HASH_NONE, HASH_SHA1, HASH_SHA256, HASH_SHA384, HASH_SHA512, MODE_CBC, MODE_CFB, MODE_ECB, PROVIDER_AES, PROVIDER_RC4 -
Constructor Summary
Constructors Modifier Constructor Description AgileEncryptionHeader(java.lang.String descriptor)protectedAgileEncryptionHeader(CTEncryption ed)AgileEncryptionHeader(CipherAlgorithm algorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) -
Method Summary
Modifier and Type Method Description byte[]getEncryptedHmacKey()byte[]getEncryptedHmacValue()protected voidsetEncryptedHmacKey(byte[] encryptedHmacKey)protected voidsetEncryptedHmacValue(byte[] encryptedHmacValue)protected voidsetKeySalt(byte[] salt)Methods inherited from class org.docx4j.org.apache.poi.poifs.crypt.EncryptionHeader
getAlgorithm, getBlockSize, getChainingMode, getCipherAlgorithm, getCipherMode, getCipherProvider, getCspName, getFlags, getHashAlgorithm, getHashAlgorithmEx, getKeySalt, getKeySize, getProviderType, getSizeExtra, setBlockSize, setChainingMode, setCipherAlgorithm, setCipherProvider, setCspName, setFlags, setHashAlgorithm, setKeySize, setSizeExtra
-
Constructor Details
-
AgileEncryptionHeader
public AgileEncryptionHeader(java.lang.String descriptor) -
AgileEncryptionHeader
-
AgileEncryptionHeader
public AgileEncryptionHeader(CipherAlgorithm algorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
-
Method Details
-
setKeySalt
protected void setKeySalt(byte[] salt)- Overrides:
setKeySaltin classEncryptionHeader
-
getEncryptedHmacKey
public byte[] getEncryptedHmacKey() -
setEncryptedHmacKey
protected void setEncryptedHmacKey(byte[] encryptedHmacKey) -
getEncryptedHmacValue
public byte[] getEncryptedHmacValue() -
setEncryptedHmacValue
protected void setEncryptedHmacValue(byte[] encryptedHmacValue)
-