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 protected
StandardEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
protected
StandardEncryptionHeader(StandardEncryptionHeader other)
protected
StandardEncryptionHeader(LittleEndianInput is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardEncryptionHeader
copy()
void
write(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:
write
in interfaceEncryptionRecord
-
copy
public StandardEncryptionHeader copy()
- Specified by:
copy
in interfaceDuplicatable
- Specified by:
copy
in classEncryptionHeader
- Returns:
- a deep copy of the implementing class / instance
-
-