Class AgileEncryptionHeader
java.lang.Object
org.docx4j.org.apache.poi.poifs.crypt.EncryptionHeader
org.docx4j.org.apache.poi.poifs.crypt.agile.AgileEncryptionHeader
- All Implemented Interfaces:
Duplicatable,GenericRecord
-
Constructor Summary
ConstructorsModifierConstructorDescriptionAgileEncryptionHeader(String descriptor) protectedAgileEncryptionHeader(CipherAlgorithm algorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) -
Method Summary
Modifier and TypeMethodDescriptioncopy()byte[]byte[]protected voidsetEncryptedHmacKey(byte[] encryptedHmacKey) protected voidsetEncryptedHmacValue(byte[] encryptedHmacValue) voidsetKeySalt(byte[] salt) Methods inherited from class org.docx4j.org.apache.poi.poifs.crypt.EncryptionHeader
getBlockSize, getChainingMode, getCipherAlgorithm, getCipherProvider, getCspName, getFlags, getHashAlgorithm, getKeySalt, getKeySize, getSizeExtra, setBlockSize, setChainingMode, setCipherAlgorithm, setCipherProvider, setCspName, setFlags, setHashAlgorithm, setKeySize, setSizeExtraMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.docx4j.org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Constructor Details
-
AgileEncryptionHeader
-
AgileEncryptionHeader
-
AgileEncryptionHeader
-
AgileEncryptionHeader
public AgileEncryptionHeader(CipherAlgorithm algorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
-
Method Details
-
setKeySalt
public 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) -
getGenericProperties
- Specified by:
getGenericPropertiesin interfaceGenericRecord- Overrides:
getGenericPropertiesin classEncryptionHeader
-
copy
- Specified by:
copyin interfaceDuplicatable- Specified by:
copyin classEncryptionHeader- Returns:
- a deep copy of the implementing class / instance
-