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 SignaturePolicy
Represents a signature policy extracted from a XAdES (XML) signature
See Also:
  • 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 SignaturePolicy
      Returns:
      a description of 'ds:Transforms' if present, null otherwise