Class CryptoAPIEncryptionHeader
java.lang.Object
org.apache.poi.poifs.crypt.EncryptionHeader
org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader
org.apache.poi.poifs.crypt.cryptoapi.CryptoAPIEncryptionHeader
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable,GenericRecord,EncryptionRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidsetKeySize(int keyBits) Sets the keySize (in bits).Methods inherited from class org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader
writeMethods inherited from class org.apache.poi.poifs.crypt.EncryptionHeader
getBlockSize, getChainingMode, getCipherAlgorithm, getCipherProvider, getCspName, getFlags, getGenericProperties, getHashAlgorithm, getKeySalt, getKeySize, getSizeExtra, setBlockSize, setCipherAlgorithm, setCipherProvider, setCspName, setFlags, setHashAlgorithm, setKeySalt, setSizeExtraMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Constructor Details
-
CryptoAPIEncryptionHeader
- Throws:
IOException
-
-
Method Details
-
setKeySize
public void setKeySize(int keyBits) Description copied from class:EncryptionHeaderSets the keySize (in bits). Before calling this method, make sure to set the cipherAlgorithm, as the amount of keyBits gets validated against the list of allowed keyBits of the corresponding cipherAlgorithm- Overrides:
setKeySizein classEncryptionHeader
-
copy
- Specified by:
copyin interfaceorg.apache.poi.common.Duplicatable- Overrides:
copyin classStandardEncryptionHeader
-