Package org.apache.poi.poifs.crypt.agile
Class AgileEncryptionHeader
- java.lang.Object
-
- org.apache.poi.poifs.crypt.EncryptionHeader
-
- org.apache.poi.poifs.crypt.agile.AgileEncryptionHeader
-
- All Implemented Interfaces:
Duplicatable
,GenericRecord
public class AgileEncryptionHeader extends EncryptionHeader
-
-
Constructor Summary
Constructors Modifier Constructor Description AgileEncryptionHeader(String descriptor)
AgileEncryptionHeader(AgileEncryptionHeader other)
protected
AgileEncryptionHeader(EncryptionDocument ed)
AgileEncryptionHeader(CipherAlgorithm algorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgileEncryptionHeader
copy()
byte[]
getEncryptedHmacKey()
byte[]
getEncryptedHmacValue()
Map<String,Supplier<?>>
getGenericProperties()
protected void
setEncryptedHmacKey(byte[] encryptedHmacKey)
protected void
setEncryptedHmacValue(byte[] encryptedHmacValue)
void
setKeySalt(byte[] salt)
-
Methods inherited from class org.apache.poi.poifs.crypt.EncryptionHeader
getBlockSize, getChainingMode, getCipherAlgorithm, getCipherProvider, getCspName, getFlags, getHashAlgorithm, getKeySalt, getKeySize, getSizeExtra, setBlockSize, setChainingMode, setCipherAlgorithm, setCipherProvider, setCspName, setFlags, setHashAlgorithm, setKeySize, setSizeExtra
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Constructor Detail
-
AgileEncryptionHeader
public AgileEncryptionHeader(String descriptor)
-
AgileEncryptionHeader
public AgileEncryptionHeader(AgileEncryptionHeader other)
-
AgileEncryptionHeader
protected AgileEncryptionHeader(EncryptionDocument ed)
-
AgileEncryptionHeader
public AgileEncryptionHeader(CipherAlgorithm algorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
-
Method Detail
-
setKeySalt
public void setKeySalt(byte[] salt)
- Overrides:
setKeySalt
in classEncryptionHeader
-
getEncryptedHmacKey
public byte[] getEncryptedHmacKey()
-
setEncryptedHmacKey
protected void setEncryptedHmacKey(byte[] encryptedHmacKey)
-
getEncryptedHmacValue
public byte[] getEncryptedHmacValue()
-
setEncryptedHmacValue
protected void setEncryptedHmacValue(byte[] encryptedHmacValue)
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericProperties
in interfaceGenericRecord
- Overrides:
getGenericProperties
in classEncryptionHeader
-
copy
public AgileEncryptionHeader copy()
- Specified by:
copy
in interfaceDuplicatable
- Specified by:
copy
in classEncryptionHeader
- Returns:
- a deep copy of the implementing class / instance
-
-