Interface SignaturePolicyIdentifier

All Known Implementing Classes:
SignaturePolicyIdentifierImpl

public interface SignaturePolicyIdentifier
  • Method Details

    • isImplied

      boolean isImplied()
    • setImplied

      void setImplied(boolean implied)
    • getIdentifier

      String getIdentifier()
    • setIdentifier

      void setIdentifier(String identifier, String hashBase64, String hashAlgorithm) throws IOException, NoSuchAlgorithmException
      Sets the SigPolicyId element values.
      Parameters:
      identifier - Policy identifier, usually an URL pointing the computer processable XML policy definition file
      hashBase64 - Hash of the policy (Base64 encoded) pointed by the identifier parameter. May be null, but only if the identifier is an URL universally accessible
      hashAlgorithm - Algorithm used for the calculation of the hash on the hashBase64 parameter. Ignored when hashBase64 is null, but mandatory when it's not
      Throws:
      IOException
      NoSuchAlgorithmException
    • setIdentifier

      void setIdentifier(String identifier) throws IOException, NoSuchAlgorithmException
      Throws:
      IOException
      NoSuchAlgorithmException
    • getHashBase64

      String getHashBase64()
    • getHashAlgorithm

      String getHashAlgorithm()
    • getDescription

      String getDescription()
    • setDescription

      void setDescription(String description)
    • getQualifier

      String getQualifier()
    • setQualifier

      void setQualifier(String qualifier)
      Sets the policy qualifier, wich must be an URL pointing to the human-readable document (usually a PDF) describing the policy.
      Parameters:
      qualifier - URL to the policy human-readable description document