Class SignaturePolicyInfo


  • public class SignaturePolicyInfo
    extends java.lang.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");

    • Field Detail

      • policyIdentifier

        private final java.lang.String policyIdentifier
      • policyHash

        private final byte[] policyHash
      • policyDigestAlgorithm

        private final java.lang.String policyDigestAlgorithm
      • policyUri

        private final java.lang.String policyUri
    • Constructor Detail

      • SignaturePolicyInfo

        public SignaturePolicyInfo​(java.lang.String policyIdentifier,
                                   byte[] policyHash,
                                   java.lang.String policyDigestAlgorithm,
                                   java.lang.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​(java.lang.String policyIdentifier,
                                   java.lang.String policyHashBase64,
                                   java.lang.String policyDigestAlgorithm,
                                   java.lang.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 Detail

      • getPolicyIdentifier

        public java.lang.String getPolicyIdentifier()
        Get the ID of the signature policy.
        Returns:
        the ID of the signature policy
      • getPolicyHash

        public byte[] getPolicyHash()
        Get the hash of the signature policy.
        Returns:
        the hash of the signature policy
      • getPolicyDigestAlgorithm

        public java.lang.String getPolicyDigestAlgorithm()
        Get the digestion algorithm of the signature policy.
        Returns:
        the digestion algorithm of the signature policy
      • getPolicyUri

        public java.lang.String getPolicyUri()
        Get the uri of the full policy description.
        Returns:
        the uri of the full policy description