org.apache.poi.poifs.crypt.standard
Class StandardEncryptionHeader

java.lang.Object
  extended by org.apache.poi.poifs.crypt.EncryptionHeader
      extended by org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader
All Implemented Interfaces:
java.lang.Cloneable, EncryptionRecord
Direct Known Subclasses:
CryptoAPIEncryptionHeader

public class StandardEncryptionHeader
extends EncryptionHeader
implements EncryptionRecord, java.lang.Cloneable


Field Summary
 
Fields inherited from class org.apache.poi.poifs.crypt.EncryptionHeader
ALGORITHM_AES_128, ALGORITHM_AES_192, ALGORITHM_AES_256, ALGORITHM_RC4, HASH_NONE, HASH_SHA1, HASH_SHA256, HASH_SHA384, HASH_SHA512, MODE_CBC, MODE_CFB, MODE_ECB, PROVIDER_AES, PROVIDER_RC4
 
Constructor Summary
protected StandardEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
           
protected StandardEncryptionHeader(LittleEndianInput is)
           
 
Method Summary
 StandardEncryptionHeader clone()
           
 void write(LittleEndianByteArrayOutputStream bos)
          serializes the header
 
Methods inherited from class org.apache.poi.poifs.crypt.EncryptionHeader
getBlockSize, getChainingMode, getCipherAlgorithm, getCipherProvider, getCspName, getFlags, getHashAlgorithm, getHashAlgorithmEx, getKeySalt, getKeySize, getSizeExtra, setBlockSize, setChainingMode, setCipherAlgorithm, setCipherProvider, setCspName, setFlags, setHashAlgorithm, setKeySalt, setKeySize, setSizeExtra
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardEncryptionHeader

protected StandardEncryptionHeader(LittleEndianInput is)
                            throws java.io.IOException
Throws:
java.io.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 interface EncryptionRecord

clone

public StandardEncryptionHeader clone()
                               throws java.lang.CloneNotSupportedException
Overrides:
clone in class EncryptionHeader
Throws:
java.lang.CloneNotSupportedException