Class SignatureScope

java.lang.Object
eu.europa.esig.dss.validation.scope.SignatureScope
All Implemented Interfaces:
IdentifierBasedObject, Serializable
Direct Known Subclasses:
ContainerSignatureScope, CounterSignatureScope, DigestSignatureScope, FullSignatureScope, HTTPHeaderSignatureScope, PdfByteRangeSignatureScope, SignatureScopeWithTransformations

public abstract class SignatureScope extends Object implements IdentifierBasedObject, Serializable
This class describes the scope of the signature
See Also:
  • Constructor Details

    • SignatureScope

      protected SignatureScope(String name, Digest digest)
      Default constructor
      Parameters:
      name - String document name
      digest - Digest document digest
  • Method Details

    • getName

      public String getName()
      Gets name of the document
      Returns:
      String
    • getDigest

      public Digest getDigest()
      Gets digests of the document
      Returns:
      Digest
    • getDescription

      public abstract String getDescription()
      Gets the signature scope description
      Returns:
      String
    • getTransformations

      public List<String> getTransformations()
      Returns a list of transformations on the original document when applicable
      Returns:
      a list of Strings
    • getType

      public abstract SignatureScopeType getType()
      Returns type of the signature scope
      Returns:
      SignatureScopeType
    • getChildren

      public List<SignatureScope> getChildren()
      Returns a list of dependent signature scopes (e.g. Manifest entries)
      Returns:
      a list of SignatureScopes
    • addChildSignatureScope

      public void addChildSignatureScope(SignatureScope signatureScope)
      Adds a new child SignatureScope
      Parameters:
      signatureScope - SignatureScope to add
    • getDSSId

      public DataIdentifier getDSSId()
      Returns the unique DSS Identifier
      Specified by:
      getDSSId in interface IdentifierBasedObject
      Returns:
      DataIdentifier
    • getDSSIdAsString

      public String getDSSIdAsString()
      Returns a String representation of the DSS Identifier
      Returns:
      String
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object