Class CTKeyData
java.lang.Object
org.docx4j.com.microsoft.schemas.office.x2006.encryption.CTKeyData
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
FieldsModifier and TypeFieldDescriptionprotected longprotected Stringprotected STCipherChainingprotected STHashAlgorithmprotected longprotected longprotected longprotected byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the value of the blockSize property.Gets the value of the cipherAlgorithm property.Gets the value of the cipherChaining property.Gets the value of the hashAlgorithm property.longGets the value of the hashSize property.longGets the value of the keyBits property.longGets the value of the saltSize property.byte[]Gets the value of the saltValue property.voidsetBlockSize(long value) Sets the value of the blockSize property.voidsetCipherAlgorithm(String value) Sets the value of the cipherAlgorithm property.voidSets 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.
-
Field Details
-
saltSize
protected long saltSize -
blockSize
protected long blockSize -
keyBits
protected long keyBits -
hashSize
protected long hashSize -
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
Gets the value of the cipherAlgorithm property.- Returns:
- possible object is
String
-
setCipherAlgorithm
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[]
-