Class SignaturePolicyInfo

java.lang.Object
com.itextpdf.signatures.SignaturePolicyInfo

public class SignaturePolicyInfo extends Object
Class that encapsulates the signature policy information Sample: SignaturePolicyInfo spi = new SignaturePolicyInfo("2.16.724.1.3.1.1.2.1.9", "G7roucf600+f03r/o0bAOQ6WAs0=", "SHA-1", "https://sede.060.gob.es/politica_de_firma_anexo_1.pdf");
  • Constructor Details

    • SignaturePolicyInfo

      public SignaturePolicyInfo (String policyIdentifier, byte[] policyHash, String policyDigestAlgorithm, String policyUri)
      Constructs a new SignaturePolicyInfo instance
      Parameters:
      policyIdentifier - the id of the signature policy
      policyHash - the hash of the signature policy
      policyDigestAlgorithm - the digestion algorithm of the signature policy
      policyUri - the uri of the full policy description
    • SignaturePolicyInfo

      public SignaturePolicyInfo (String policyIdentifier, String policyHashBase64, String policyDigestAlgorithm, String policyUri)
      Constructs a new SignaturePolicyInfo instance
      Parameters:
      policyIdentifier - the id of the signature policy
      policyHashBase64 - the Base64 presentation of the hash of the signature policy
      policyDigestAlgorithm - the digestion algorithm of the signature policy
      policyUri - the uri of the full policy description
  • Method Details

    • getPolicyIdentifier

      public String getPolicyIdentifier()
    • getPolicyHash

      public byte[] getPolicyHash()
    • getPolicyDigestAlgorithm

      public String getPolicyDigestAlgorithm()
    • getPolicyUri

      public String getPolicyUri()