java.lang.Object
org.apache.xml.security.stax.ext.SecurePart

public class SecurePart extends Object
Class to describe which and how an element must be secured
  • Constructor Details

  • Method Details

    • getName

      public QName getName()
      The name of the element to be secured
      Returns:
      The Element-Local-Name
    • setName

      public void setName(QName name)
    • getModifier

      public SecurePart.Modifier getModifier()
    • setModifier

      public void setModifier(SecurePart.Modifier modifier)
    • getIdToSecure

      public String getIdToSecure()
      The ID of the element to secure (encrypt or sign), possibly null. This matches the attribute value of an element that has an attribute with a name given by XMLSecurityProperties.getIdAttributeNS().
      Returns:
      The ID of the element to secure, possibly null.
    • setIdToSecure

      public void setIdToSecure(String idToSecure)
    • getIdToSign

      @Deprecated public String getIdToSign()
      Deprecated.
      Use getIdToSecure() instead.
    • setIdToSign

      @Deprecated public void setIdToSign(String idToSign)
      Deprecated.
      Parameters:
      idToSign -
    • isGenerateXPointer

      public boolean isGenerateXPointer()
    • setGenerateXPointer

      public void setGenerateXPointer(boolean generateXPointer)
    • getExternalReference

      public String getExternalReference()
    • setExternalReference

      public void setExternalReference(String externalReference)
    • getTransforms

      public String[] getTransforms()
    • setTransforms

      public void setTransforms(String[] transforms)
    • getDigestMethod

      public String getDigestMethod()
    • setDigestMethod

      public void setDigestMethod(String digestMethod)
    • isRequired

      public boolean isRequired()
    • setRequired

      public void setRequired(boolean required)
    • isSecureEntireRequest

      public boolean isSecureEntireRequest()
    • setSecureEntireRequest

      public void setSecureEntireRequest(boolean secureEntireRequest)