Class CryptoAPIEncryptionHeader
java.lang.Object
org.docx4j.org.apache.poi.poifs.crypt.EncryptionHeader
org.docx4j.org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader
org.docx4j.org.apache.poi.poifs.crypt.cryptoapi.CryptoAPIEncryptionHeader
- All Implemented Interfaces:
EncryptionRecord
public class CryptoAPIEncryptionHeader extends StandardEncryptionHeader
-
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 protectedCryptoAPIEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)CryptoAPIEncryptionHeader(LittleEndianInput is) -
Method Summary
Modifier and Type Method Description voidsetKeySize(int keyBits)Methods inherited from class org.docx4j.org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader
writeMethods 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, setKeySalt, setSizeExtraMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CryptoAPIEncryptionHeader
- Throws:
java.io.IOException
-
CryptoAPIEncryptionHeader
protected CryptoAPIEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
-
Method Details
-
setKeySize
public void setKeySize(int keyBits)- Overrides:
setKeySizein classEncryptionHeader
-