Top Description Fields Constructors Methods
org.apache.poi.poifs.crypt.agile

public Class KeyData

extends Object
Class Inheritance
Static Imports
org.apache.poi.poifs.crypt.agile.EncryptionDocument.ENC_NS, .EncryptionDocument.getBinAttr, .EncryptionDocument.getIntAttr, .EncryptionDocument.getTag, .EncryptionDocument.setAttr, .EncryptionDocument.setBinAttr, .EncryptionDocument.setIntAttr

A complex type that specifies the encryption used within this element. The saltValue attribute is a base64-encoded binary value that is randomly generated. The number of bytes required to decode the saltValue attribute MUST be equal to the value of the saltSize attribute.

Field Summary

Modifier and TypeField and Description
private Integer
private CipherAlgorithm
private ChainingMode
private HashAlgorithm
private Integer
private Integer
private Integer
private byte[]

Constructor Summary

AccessConstructor and Description
public
public
KeyData(Element parent)

Method Summary

Modifier and TypeMethod and Description
public Integer
public CipherAlgorithm
public ChainingMode
public HashAlgorithm
public Integer
public Integer
public Integer
public byte[]
public void
setBlockSize(Integer blockSize)

public void
public void
public void
public void
setHashSize(Integer hashSize)

public void
public void
setSaltSize(Integer saltSize)

public void
setSaltValue(byte[] saltValue)

pack-priv void
write(Element encryption)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blockSizeback to summary
private Integer blockSize
cipherAlgorithmback to summary
private CipherAlgorithm cipherAlgorithm
cipherChainingback to summary
private ChainingMode cipherChaining
hashAlgorithmback to summary
private HashAlgorithm hashAlgorithm
hashSizeback to summary
private Integer hashSize
keyBitsback to summary
private Integer keyBits
saltSizeback to summary
private Integer saltSize
saltValueback to summary
private byte[] saltValue

Constructor Detail

KeyDataback to summary
public KeyData()
KeyDataback to summary
public KeyData(Element parent)

Method Detail

getBlockSizeback to summary
public Integer getBlockSize()
getCipherAlgorithmback to summary
public CipherAlgorithm getCipherAlgorithm()
getCipherChainingback to summary
public ChainingMode getCipherChaining()
getHashAlgorithmback to summary
public HashAlgorithm getHashAlgorithm()
getHashSizeback to summary
public Integer getHashSize()
getKeyBitsback to summary
public Integer getKeyBits()
getSaltSizeback to summary
public Integer getSaltSize()
getSaltValueback to summary
public byte[] getSaltValue()
setBlockSizeback to summary
public void setBlockSize(Integer blockSize)
setCipherAlgorithmback to summary
public void setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
setCipherChainingback to summary
public void setCipherChaining(ChainingMode cipherChaining)
setHashAlgorithmback to summary
public void setHashAlgorithm(HashAlgorithm hashAlgorithm)
setHashSizeback to summary
public void setHashSize(Integer hashSize)
setKeyBitsback to summary
public void setKeyBits(Integer keyBits)
setSaltSizeback to summary
public void setSaltSize(Integer saltSize)
setSaltValueback to summary
public void setSaltValue(byte[] saltValue)
writeback to summary
pack-priv void write(Element encryption)