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

public Class CertificateKeyEncryptor

extends Object
Class Inheritance
Imports
org.apache.poi.EncryptedDocumentException, org.w3c.dom.Document, .Element

Field Summary

Modifier and TypeField and Description
private byte[]
certVerifier

A base64-encoded value that specifies the HMAC of the binary data obtained by base64-decoding the X509Certificate attribute.

private byte[]
encryptedKeyValue

A base64-encoded value that specifies the encrypted form of the intermediate key, which is encrypted with the public key contained within the X509Certificate attribute.

private byte[]
x509Certificate

A base64-encoded value that specifies a DER-encoded X.509 certificate (1) used to encrypt the intermediate key.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
public byte[]
public byte[]
public void
setCertVerifier(byte[] certVerifier)

public void
setEncryptedKeyValue(byte[] encryptedKeyValue)

public void
setX509Certificate(byte[] x509Certificate)

pack-priv void
write(Element encryption)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certVerifierback to summary
private byte[] certVerifier

A base64-encoded value that specifies the HMAC of the binary data obtained by base64-decoding the X509Certificate attribute. The hashing algorithm used to derive the HMAC MUST be the hashing algorithm specified for the Encryption.keyData element. The secret key used to derive the HMAC MUST be the intermediate key. If the intermediate key is reset, any CertificateKeyEncryptor elements are also reset to contain the new intermediate key, except that the certVerifier attribute MUST match the value calculated using the current intermediate key, to verify that the CertificateKeyEncryptor element actually encrypted the current intermediate key. If a CertificateKeyEncryptor element does not have a correct certVerifier attribute, it MUST be discarded.

encryptedKeyValueback to summary
private byte[] encryptedKeyValue

A base64-encoded value that specifies the encrypted form of the intermediate key, which is encrypted with the public key contained within the X509Certificate attribute.

x509Certificateback to summary
private byte[] x509Certificate

A base64-encoded value that specifies a DER-encoded X.509 certificate (1) used to encrypt the intermediate key. The certificate (1) MUST contain only the public portion of the public-private key pair.

Constructor Detail

CertificateKeyEncryptorback to summary
public CertificateKeyEncryptor(Element certificateKey)

Method Detail

getCertVerifierback to summary
public byte[] getCertVerifier()
getEncryptedKeyValueback to summary
public byte[] getEncryptedKeyValue()
getX509Certificateback to summary
public byte[] getX509Certificate()
setCertVerifierback to summary
public void setCertVerifier(byte[] certVerifier)
setEncryptedKeyValueback to summary
public void setEncryptedKeyValue(byte[] encryptedKeyValue)
setX509Certificateback to summary
public void setX509Certificate(byte[] x509Certificate)
writeback to summary
pack-priv void write(Element encryption)