Class CTKeyData
java.lang.Object
org.docx4j.com.microsoft.schemas.office.x2006.encryption.CTKeyData
public class CTKeyData
extends java.lang.Object
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.
Java class for CT_KeyData complex type.
The following schema fragment specifies the expected content contained within this class.
<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>
-
Field Summary
Fields Modifier and Type Field Description protected longblockSizeprotected java.lang.StringcipherAlgorithmprotected STCipherChainingcipherChainingprotected STHashAlgorithmhashAlgorithmprotected longhashSizeprotected longkeyBitsprotected longsaltSizeprotected byte[]saltValue -
Constructor Summary
Constructors Constructor Description CTKeyData() -
Method Summary
Modifier and Type Method Description longgetBlockSize()Gets the value of the blockSize property.java.lang.StringgetCipherAlgorithm()Gets the value of the cipherAlgorithm property.STCipherChaininggetCipherChaining()Gets the value of the cipherChaining property.STHashAlgorithmgetHashAlgorithm()Gets the value of the hashAlgorithm property.longgetHashSize()Gets the value of the hashSize property.longgetKeyBits()Gets the value of the keyBits property.longgetSaltSize()Gets the value of the saltSize property.byte[]getSaltValue()Gets the value of the saltValue property.voidsetBlockSize(long value)Sets the value of the blockSize property.voidsetCipherAlgorithm(java.lang.String value)Sets the value of the cipherAlgorithm property.voidsetCipherChaining(STCipherChaining value)Sets the value of the cipherChaining property.voidsetHashAlgorithm(STHashAlgorithm value)Sets the value of the hashAlgorithm property.voidsetHashSize(long value)Sets the value of the hashSize property.voidsetKeyBits(long value)Sets the value of the keyBits property.voidsetSaltSize(long value)Sets the value of the saltSize property.voidsetSaltValue(byte[] value)Sets the value of the saltValue property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
saltSize
protected long saltSize -
blockSize
protected long blockSize -
keyBits
protected long keyBits -
hashSize
protected long hashSize -
cipherAlgorithm
protected java.lang.String cipherAlgorithm -
cipherChaining
-
hashAlgorithm
-
saltValue
protected byte[] saltValue
-
-
Constructor Details
-
CTKeyData
public CTKeyData()
-
-
Method Details
-
getSaltSize
public long getSaltSize()Gets the value of the saltSize property. -
setSaltSize
public void setSaltSize(long value)Sets the value of the saltSize property. -
getBlockSize
public long getBlockSize()Gets the value of the blockSize property. -
setBlockSize
public void setBlockSize(long value)Sets the value of the blockSize property. -
getKeyBits
public long getKeyBits()Gets the value of the keyBits property. -
setKeyBits
public void setKeyBits(long value)Sets the value of the keyBits property. -
getHashSize
public long getHashSize()Gets the value of the hashSize property. -
setHashSize
public void setHashSize(long value)Sets the value of the hashSize property. -
getCipherAlgorithm
public java.lang.String getCipherAlgorithm()Gets the value of the cipherAlgorithm property.- Returns:
- possible object is
String
-
setCipherAlgorithm
public void setCipherAlgorithm(java.lang.String value)Sets the value of the cipherAlgorithm property.- Parameters:
value- allowed object isString
-
getCipherChaining
Gets the value of the cipherChaining property.- Returns:
- possible object is
STCipherChaining
-
setCipherChaining
Sets the value of the cipherChaining property.- Parameters:
value- allowed object isSTCipherChaining
-
getHashAlgorithm
Gets the value of the hashAlgorithm property.- Returns:
- possible object is
STHashAlgorithm
-
setHashAlgorithm
Sets the value of the hashAlgorithm property.- Parameters:
value- allowed object isSTHashAlgorithm
-
getSaltValue
public byte[] getSaltValue()Gets the value of the saltValue property.- Returns:
- possible object is byte[]
-
setSaltValue
public void setSaltValue(byte[] value)Sets the value of the saltValue property.- Parameters:
value- allowed object is byte[]
-