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

public Class DataIntegrity

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

A complex type that specifies data used to verify whether the encrypted data passes an integrity check. It MUST be generated using the method specified in section 2.3.4.14
See Also
DataIntegrity Generation

Field Summary

Modifier and TypeField and Description
private byte[]
encryptedHmacKey

A base64-encoded value that specifies an encrypted key used in calculating the encryptedHmacValue.

private byte[]
encryptedHmacValue

A base64-encoded value that specifies an HMAC derived from encryptedHmacKey and the encrypted data.

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
public byte[]
public void
setEncryptedHmacKey(byte[] encryptedHmacKey)

public void
setEncryptedHmacValue(byte[] encryptedHmacValue)

pack-priv void
write(Element encryption)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encryptedHmacKeyback to summary
private byte[] encryptedHmacKey

A base64-encoded value that specifies an encrypted key used in calculating the encryptedHmacValue.

encryptedHmacValueback to summary
private byte[] encryptedHmacValue

A base64-encoded value that specifies an HMAC derived from encryptedHmacKey and the encrypted data.

Constructor Detail

DataIntegrityback to summary
public DataIntegrity()
DataIntegrityback to summary
public DataIntegrity(Element parent)

Method Detail

getEncryptedHmacKeyback to summary
public byte[] getEncryptedHmacKey()
getEncryptedHmacValueback to summary
public byte[] getEncryptedHmacValue()
setEncryptedHmacKeyback to summary
public void setEncryptedHmacKey(byte[] encryptedHmacKey)
setEncryptedHmacValueback to summary
public void setEncryptedHmacValue(byte[] encryptedHmacValue)
writeback to summary
pack-priv void write(Element encryption)