Class Policy

java.lang.Object
eu.europa.esig.dss.model.Policy
All Implemented Interfaces:
Serializable

public class Policy
extends Object
implements Serializable
This class allows to define the signature policy.
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Get the signature policy (EPES)
      Returns:
      the policy id
    • setId

      public void setId​(String id)
      Set the signature policy (EPES)
      Parameters:
      id - the policy id
    • getQualifier

      public ObjectIdentifierQualifier getQualifier()
      Get the identifier qualifier
      Returns:
      the qualifier
    • setQualifier

      public void setQualifier​(ObjectIdentifierQualifier qualifier)
      Set the identifier qualifier
      Parameters:
      qualifier - the qualifier
    • getDescription

      public String getDescription()
      Get the signature policy description
      Returns:
      the signature policy description
    • setDescription

      public void setDescription​(String description)
      Set the signature policy description
      Parameters:
      description - the policy description
    • getDocumentationReferences

      public String[] getDocumentationReferences()
      Get the signature policy documentation references
      Returns:
      the signature policy documentation references
    • setDocumentationReferences

      public void setDocumentationReferences​(String... documentationReferences)
      Set a list of signature documentation references
      Parameters:
      documentationReferences - an array of String documentation references
    • getDigestAlgorithm

      public DigestAlgorithm getDigestAlgorithm()
      Return the hash algorithm for the signature policy
      Returns:
      the used digest algorithm for the policy
    • setDigestAlgorithm

      public void setDigestAlgorithm​(DigestAlgorithm digestAlgorithm)
      Set the hash algorithm for the explicit signature policy
      Parameters:
      digestAlgorithm - the used digest algorithm for the policy
    • getDigestValue

      public byte[] getDigestValue()
      Get the hash value of the explicit signature policy
      Returns:
      the digest value for the policy
    • setDigestValue

      public void setDigestValue​(byte[] digestValue)
      Set the hash value of implicit signature policy
      Parameters:
      digestValue - the digest of the policy
    • getSpuri

      public String getSpuri()
      Get the SP URI (signature policy URI)
      Returns:
      the signature policy URI
    • setSpuri

      public void setSpuri​(String spuri)
      Set the SP URI (signature policy URI)
      Parameters:
      spuri - the signature policy URI
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public String toString()
      Overrides:
      toString in class Object