Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi.poifs.crypt.cryptoapi
Class CryptoAPIEncryptionHeader

    java.lang.Object
      org.apache.poi.poifs.crypt.EncryptionHeader
          org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader
              org.apache.poi.poifs.crypt.cryptoapi.CryptoAPIEncryptionHeader

All Implemented Interfaces:
  java.lang.Cloneable, EncryptionRecord

    public class CryptoAPIEncryptionHeader

extends StandardEncryptionHeader
implements 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` | `CryptoAPIEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)`
`` | `CryptoAPIEncryptionHeader(LittleEndianInput is)`

Method Summary
`CryptoAPIEncryptionHeader` | `clone()`
`void` | `setKeySize(int keyBits)` Sets the keySize (in bits).

Methods inherited from class org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader
`write`

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, setSizeExtra`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CryptoAPIEncryptionHeader

    public CryptoAPIEncryptionHeader(LittleEndianInput is)
                              throws java.io.IOException

Throws:
  `java.io.IOException`

### CryptoAPIEncryptionHeader

    protected CryptoAPIEncryptionHeader(CipherAlgorithm cipherAlgorithm,
                                        HashAlgorithm hashAlgorithm,
                                        int keyBits,
                                        int blockSize,
                                        ChainingMode chainingMode)

Method Detail

### setKeySize

    public void setKeySize(int keyBits)

  Description copied from class: `EncryptionHeader`
  Sets the keySize (in bits). Before calling this method, make sure to set the cipherAlgorithm, as the amount of keyBits gets validated against the list of allowed keyBits of the corresponding cipherAlgorithm

  Overrides:
    `setKeySize` in class `EncryptionHeader`

### clone

    public CryptoAPIEncryptionHeader clone()
                                    throws java.lang.CloneNotSupportedException

  Overrides:
    `clone` in class `StandardEncryptionHeader`
  Throws:
    `java.lang.CloneNotSupportedException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2017 The Apache Software Foundation or its licensors, as applicable.