Class StandardEncryptionHeader
- java.lang.Object
-
- org.apache.poi.poifs.crypt.EncryptionHeader
-
- org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader
-
- All Implemented Interfaces:
Duplicatable,GenericRecord,EncryptionRecord
- Direct Known Subclasses:
CryptoAPIEncryptionHeader
public class StandardEncryptionHeader extends EncryptionHeader implements EncryptionRecord
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandardEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)protectedStandardEncryptionHeader(StandardEncryptionHeader other)protectedStandardEncryptionHeader(LittleEndianInput is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardEncryptionHeadercopy()voidwrite(LittleEndianByteArrayOutputStream bos)serializes the header-
Methods inherited from class org.apache.poi.poifs.crypt.EncryptionHeader
getBlockSize, getChainingMode, getCipherAlgorithm, getCipherProvider, getCspName, getFlags, getGenericProperties, getHashAlgorithm, getKeySalt, getKeySize, getSizeExtra, setBlockSize, setChainingMode, setCipherAlgorithm, setCipherProvider, setCspName, setFlags, setHashAlgorithm, setKeySalt, 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
-
StandardEncryptionHeader
protected StandardEncryptionHeader(StandardEncryptionHeader other)
-
StandardEncryptionHeader
protected StandardEncryptionHeader(LittleEndianInput is) throws IOException
- Throws:
IOException
-
StandardEncryptionHeader
protected StandardEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
-
Method Detail
-
write
public void write(LittleEndianByteArrayOutputStream bos)
serializes the header- Specified by:
writein interfaceEncryptionRecord
-
copy
public StandardEncryptionHeader copy()
- Specified by:
copyin interfaceDuplicatable- Specified by:
copyin classEncryptionHeader- Returns:
- a deep copy of the implementing class / instance
-
-