Top Constructors Methods
org.apache.poi.poifs.crypt.cryptoapi

public Class CryptoAPIEncryptionHeader

extends StandardEncryptionHeader
Class Inheritance
Imports
java.io.IOException, org.apache.poi.EncryptedDocumentException, org.apache.poi.poifs.crypt.ChainingMode, .CipherAlgorithm, .CipherProvider, .HashAlgorithm, org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader, org.apache.poi.util.LittleEndianInput

Constructor Summary

AccessConstructor and Description
public
protected
protected
CryptoAPIEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)

Method Summary

Modifier and TypeMethod and Description
public CryptoAPIEncryptionHeader
public void
setKeySize(int keyBits)

Overrides org.apache.poi.poifs.crypt.EncryptionHeader.setKeySize.

Sets the keySize (in bits).

Inherited from org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader:
write

Constructor Detail

CryptoAPIEncryptionHeaderback to summary
public CryptoAPIEncryptionHeader(LittleEndianInput is) throws IOException
CryptoAPIEncryptionHeaderback to summary
protected CryptoAPIEncryptionHeader(CryptoAPIEncryptionHeader other)
CryptoAPIEncryptionHeaderback to summary
protected CryptoAPIEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)

Method Detail

copyback to summary
public CryptoAPIEncryptionHeader copy()

Overrides org.apache.poi.poifs.crypt.standard.StandardEncryptionHeader.copy.

Implements org.apache.poi.common.Duplicatable.copy.

Returns:CryptoAPIEncryptionHeader

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

Annotations
@Override
setKeySizeback to summary
public void setKeySize(int keyBits)

Overrides org.apache.poi.poifs.crypt.EncryptionHeader.setKeySize.

Doc from org.apache.poi.poifs.crypt.EncryptionHeader.setKeySize.

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

Annotations
@Override