Class Policy

    • Constructor Detail

      • Policy

        public Policy()
    • Method Detail

      • 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 String getQualifier()
        Get the identifier qualifier
        Returns:
        the qualifier
      • setQualifier

        public void setQualifier​(String 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
      • 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