package org.docx4j.com.microsoft.schemas.office.x2006.encryption; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * 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. * * <p>Java class for CT_KeyData complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="CT_KeyData"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="saltSize" use="required" type="{http://schemas.microsoft.com/office/2006/encryption}ST_SaltSize" /> * <attribute name="blockSize" use="required" type="{http://schemas.microsoft.com/office/2006/encryption}ST_BlockSize" /> * <attribute name="keyBits" use="required" type="{http://schemas.microsoft.com/office/2006/encryption}ST_KeyBits" /> * <attribute name="hashSize" use="required" type="{http://schemas.microsoft.com/office/2006/encryption}ST_HashSize" /> * <attribute name="cipherAlgorithm" use="required" type="{http://schemas.microsoft.com/office/2006/encryption}ST_CipherAlgorithm" /> * <attribute name="cipherChaining" use="required" type="{http://schemas.microsoft.com/office/2006/encryption}ST_CipherChaining" /> * <attribute name="hashAlgorithm" use="required" type="{http://schemas.microsoft.com/office/2006/encryption}ST_HashAlgorithm" /> * <attribute name="saltValue" use="required" type="{http://www.w3.org/2001/XMLSchema}base64Binary" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_KeyData") public class CTKeyData { @XmlAttribute(name = "saltSize", required = true) protected long saltSize; @XmlAttribute(name = "blockSize", required = true) protected long blockSize; @XmlAttribute(name = "keyBits", required = true) protected long keyBits; @XmlAttribute(name = "hashSize", required = true) protected long hashSize; @XmlAttribute(name = "cipherAlgorithm", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String cipherAlgorithm; @XmlAttribute(name = "cipherChaining", required = true) protected STCipherChaining cipherChaining; @XmlAttribute(name = "hashAlgorithm", required = true) protected STHashAlgorithm hashAlgorithm; @XmlAttribute(name = "saltValue", required = true) protected byte[] saltValue; /** * Gets the value of the saltSize property. * */ public long getSaltSize() { return saltSize; } /** * Sets the value of the saltSize property. * */ public void setSaltSize(long value) { this.saltSize = value; } /** * Gets the value of the blockSize property. * */ public long getBlockSize() { return blockSize; } /** * Sets the value of the blockSize property. * */ public void setBlockSize(long value) { this.blockSize = value; } /** * Gets the value of the keyBits property. * */ public long getKeyBits() { return keyBits; } /** * Sets the value of the keyBits property. * */ public void setKeyBits(long value) { this.keyBits = value; } /** * Gets the value of the hashSize property. * */ public long getHashSize() { return hashSize; } /** * Sets the value of the hashSize property. * */ public void setHashSize(long value) { this.hashSize = value; } /** * Gets the value of the cipherAlgorithm property. * * @return * possible object is * {@link String } * */ public String getCipherAlgorithm() { return cipherAlgorithm; } /** * Sets the value of the cipherAlgorithm property. * * @param value * allowed object is * {@link String } * */ public void setCipherAlgorithm(String value) { this.cipherAlgorithm = value; } /** * Gets the value of the cipherChaining property. * * @return * possible object is * {@link STCipherChaining } * */ public STCipherChaining getCipherChaining() { return cipherChaining; } /** * Sets the value of the cipherChaining property. * * @param value * allowed object is * {@link STCipherChaining } * */ public void setCipherChaining(STCipherChaining value) { this.cipherChaining = value; } /** * Gets the value of the hashAlgorithm property. * * @return * possible object is * {@link STHashAlgorithm } * */ public STHashAlgorithm getHashAlgorithm() { return hashAlgorithm; } /** * Sets the value of the hashAlgorithm property. * * @param value * allowed object is * {@link STHashAlgorithm } * */ public void setHashAlgorithm(STHashAlgorithm value) { this.hashAlgorithm = value; } /** * Gets the value of the saltValue property. * * @return * possible object is * byte[] */ public byte[] getSaltValue() { return saltValue; } /** * Sets the value of the saltValue property. * * @param value * allowed object is * byte[] */ public void setSaltValue(byte[] value) { this.saltValue = value; } }