java.lang.Object
org.docx4j.com.microsoft.schemas.office.x2006.encryption.CTKeyData

public class CTKeyData extends 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 Details

    • saltSize

      protected long saltSize
    • blockSize

      protected long blockSize
    • keyBits

      protected long keyBits
    • hashSize

      protected long hashSize
    • cipherAlgorithm

      protected String cipherAlgorithm
    • cipherChaining

      protected STCipherChaining cipherChaining
    • hashAlgorithm

      protected STHashAlgorithm 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 String getCipherAlgorithm()
      Gets the value of the cipherAlgorithm property.
      Returns:
      possible object is String
    • setCipherAlgorithm

      public void setCipherAlgorithm(String value)
      Sets the value of the cipherAlgorithm property.
      Parameters:
      value - allowed object is String
    • getCipherChaining

      public STCipherChaining getCipherChaining()
      Gets the value of the cipherChaining property.
      Returns:
      possible object is STCipherChaining
    • setCipherChaining

      public void setCipherChaining(STCipherChaining value)
      Sets the value of the cipherChaining property.
      Parameters:
      value - allowed object is STCipherChaining
    • getHashAlgorithm

      public STHashAlgorithm getHashAlgorithm()
      Gets the value of the hashAlgorithm property.
      Returns:
      possible object is STHashAlgorithm
    • setHashAlgorithm

      public void setHashAlgorithm(STHashAlgorithm value)
      Sets the value of the hashAlgorithm property.
      Parameters:
      value - allowed object is STHashAlgorithm
    • 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[]