Class CTWriteProtection

java.lang.Object
org.docx4j.wml.CTWriteProtection
All Implemented Interfaces:
Child

public class CTWriteProtection
extends java.lang.Object
implements Child

Java class for CT_WriteProtection complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_WriteProtection">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attGroup ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}AG_Password"/>
       <attribute name="recommended" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • cryptProviderType

      protected STCryptProv cryptProviderType
    • cryptAlgorithmClass

      protected STAlgClass cryptAlgorithmClass
    • cryptAlgorithmType

      protected STAlgType cryptAlgorithmType
    • cryptAlgorithmSid

      protected java.math.BigInteger cryptAlgorithmSid
    • cryptSpinCount

      protected java.math.BigInteger cryptSpinCount
    • cryptProvider

      protected java.lang.String cryptProvider
    • algIdExt

      protected java.lang.String algIdExt
    • algIdExtSource

      protected java.lang.String algIdExtSource
    • cryptProviderTypeExt

      protected java.lang.String cryptProviderTypeExt
    • cryptProviderTypeExtSource

      protected java.lang.String cryptProviderTypeExtSource
    • hash

      protected byte[] hash
    • salt

      protected byte[] salt
  • Constructor Details

    • CTWriteProtection

      public CTWriteProtection()
  • Method Details

    • isRecommended

      public boolean isRecommended()
      Gets the value of the recommended property.
      Returns:
      possible object is Boolean
    • setRecommended

      public void setRecommended​(java.lang.Boolean value)
      Sets the value of the recommended property.
      Parameters:
      value - allowed object is Boolean
    • getCryptProviderType

      public STCryptProv getCryptProviderType()
      Gets the value of the cryptProviderType property.
      Returns:
      possible object is STCryptProv
    • setCryptProviderType

      public void setCryptProviderType​(STCryptProv value)
      Sets the value of the cryptProviderType property.
      Parameters:
      value - allowed object is STCryptProv
    • getCryptAlgorithmClass

      public STAlgClass getCryptAlgorithmClass()
      Gets the value of the cryptAlgorithmClass property.
      Returns:
      possible object is STAlgClass
    • setCryptAlgorithmClass

      public void setCryptAlgorithmClass​(STAlgClass value)
      Sets the value of the cryptAlgorithmClass property.
      Parameters:
      value - allowed object is STAlgClass
    • getCryptAlgorithmType

      public STAlgType getCryptAlgorithmType()
      Gets the value of the cryptAlgorithmType property.
      Returns:
      possible object is STAlgType
    • setCryptAlgorithmType

      public void setCryptAlgorithmType​(STAlgType value)
      Sets the value of the cryptAlgorithmType property.
      Parameters:
      value - allowed object is STAlgType
    • getCryptAlgorithmSid

      public java.math.BigInteger getCryptAlgorithmSid()
      Gets the value of the cryptAlgorithmSid property.
      Returns:
      possible object is BigInteger
    • setCryptAlgorithmSid

      public void setCryptAlgorithmSid​(java.math.BigInteger value)
      Sets the value of the cryptAlgorithmSid property.
      Parameters:
      value - allowed object is BigInteger
    • getCryptSpinCount

      public java.math.BigInteger getCryptSpinCount()
      Gets the value of the cryptSpinCount property.
      Returns:
      possible object is BigInteger
    • setCryptSpinCount

      public void setCryptSpinCount​(java.math.BigInteger value)
      Sets the value of the cryptSpinCount property.
      Parameters:
      value - allowed object is BigInteger
    • getCryptProvider

      public java.lang.String getCryptProvider()
      Gets the value of the cryptProvider property.
      Returns:
      possible object is String
    • setCryptProvider

      public void setCryptProvider​(java.lang.String value)
      Sets the value of the cryptProvider property.
      Parameters:
      value - allowed object is String
    • getAlgIdExt

      public java.lang.String getAlgIdExt()
      Gets the value of the algIdExt property.
      Returns:
      possible object is String
    • setAlgIdExt

      public void setAlgIdExt​(java.lang.String value)
      Sets the value of the algIdExt property.
      Parameters:
      value - allowed object is String
    • getAlgIdExtSource

      public java.lang.String getAlgIdExtSource()
      Gets the value of the algIdExtSource property.
      Returns:
      possible object is String
    • setAlgIdExtSource

      public void setAlgIdExtSource​(java.lang.String value)
      Sets the value of the algIdExtSource property.
      Parameters:
      value - allowed object is String
    • getCryptProviderTypeExt

      public java.lang.String getCryptProviderTypeExt()
      Gets the value of the cryptProviderTypeExt property.
      Returns:
      possible object is String
    • setCryptProviderTypeExt

      public void setCryptProviderTypeExt​(java.lang.String value)
      Sets the value of the cryptProviderTypeExt property.
      Parameters:
      value - allowed object is String
    • getCryptProviderTypeExtSource

      public java.lang.String getCryptProviderTypeExtSource()
      Gets the value of the cryptProviderTypeExtSource property.
      Returns:
      possible object is String
    • setCryptProviderTypeExtSource

      public void setCryptProviderTypeExtSource​(java.lang.String value)
      Sets the value of the cryptProviderTypeExtSource property.
      Parameters:
      value - allowed object is String
    • getHash

      public byte[] getHash()
      Gets the value of the hash property.
      Returns:
      possible object is byte[]
    • setHash

      public void setHash​(byte[] value)
      Sets the value of the hash property.
      Parameters:
      value - allowed object is byte[]
    • getSalt

      public byte[] getSalt()
      Gets the value of the salt property.
      Returns:
      possible object is byte[]
    • setSalt

      public void setSalt​(byte[] value)
      Sets the value of the salt property.
      Parameters:
      value - allowed object is byte[]
    • getParent

      public java.lang.Object getParent()
      Gets the parent object in the object tree representing the unmarshalled xml document.
      Specified by:
      getParent in interface Child
      Returns:
      The parent object.
    • setParent

      public void setParent​(java.lang.Object parent)
      Specified by:
      setParent in interface Child
    • afterUnmarshal

      public void afterUnmarshal​(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)
      This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
      Parameters:
      parent - The parent object in the object tree.
      unmarshaller - The unmarshaller that generated the instance.