Class XAdESSignaturePolicy

java.lang.Object
eu.europa.esig.dss.validation.SignaturePolicy
eu.europa.esig.dss.xades.validation.XAdESSignaturePolicy
All Implemented Interfaces:
Serializable

public class XAdESSignaturePolicy extends eu.europa.esig.dss.validation.SignaturePolicy
Represents a signature policy extracted from a XAdES (XML) signature
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    The default constructor for XAdESSignaturePolicy.
    The default constructor for XAdESSignaturePolicy.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a 'ds:Transforms' element if found NOTE: XAdES only
    Gets a list of Strings describing the 'ds:Transforms' element NOTE: XAdES only
    void
    setTransforms(Element transforms)
    Sets a 'ds:Transforms' node

    Methods inherited from class eu.europa.esig.dss.validation.SignaturePolicy

    getDescription, getDigest, getDocSpecification, getDocumentationReferences, getIdentifier, getPolicyContent, getUri, getUserNotice, isHashAsInTechnicalSpecification, isZeroHash, setDescription, setDigest, setDocSpecification, setDocumentationReferences, setHashAsInTechnicalSpecification, setPolicyContent, setUri, setUserNotice, setZeroHash

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XAdESSignaturePolicy

      public XAdESSignaturePolicy()
      The default constructor for XAdESSignaturePolicy. It represents the implied policy.
    • XAdESSignaturePolicy

      public XAdESSignaturePolicy(String identifier)
      The default constructor for XAdESSignaturePolicy.
      Parameters:
      identifier - the policy identifier
  • Method Details

    • getTransforms

      public Element getTransforms()
      Returns a 'ds:Transforms' element if found NOTE: XAdES only
      Returns:
      'ds:Transforms' Element if found, NULL otherwise
    • setTransforms

      public void setTransforms(Element transforms)
      Sets a 'ds:Transforms' node
      Parameters:
      transforms - Element
    • getTransformsDescription

      public List<String> getTransformsDescription()
      Gets a list of Strings describing the 'ds:Transforms' element NOTE: XAdES only
      Overrides:
      getTransformsDescription in class eu.europa.esig.dss.validation.SignaturePolicy
      Returns:
      a description of 'ds:Transforms' if present, null otherwise