Class SignaturePolicyIdentifierImpl

    • Field Detail

      • implied

        private boolean implied
      • sigPolicyId

        private java.lang.String sigPolicyId
      • description

        private java.lang.String description
      • sigPolicyQualifierSPURI

        private java.lang.String sigPolicyQualifierSPURI
      • sigPolicyHashBase64

        private java.lang.String sigPolicyHashBase64
      • sigPolicyHashHashAlgorithm

        private java.lang.String sigPolicyHashHashAlgorithm
    • Constructor Detail

      • SignaturePolicyIdentifierImpl

        public SignaturePolicyIdentifierImpl​(boolean implied)
    • Method Detail

      • inputStreamToByteArray

        private byte[] inputStreamToByteArray​(java.io.InputStream in)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • setIdentifier

        public void setIdentifier​(java.lang.String identifier)
                           throws java.io.IOException,
                                  java.security.NoSuchAlgorithmException
        Specified by:
        setIdentifier in interface SignaturePolicyIdentifier
        Throws:
        java.io.IOException
        java.security.NoSuchAlgorithmException
      • setIdentifier

        public void setIdentifier​(java.lang.String identifier,
                                  java.lang.String hashBase64,
                                  java.lang.String hashAlgorithm)
                           throws java.io.IOException,
                                  java.security.NoSuchAlgorithmException
        Description copied from interface: SignaturePolicyIdentifier
        Sets the SigPolicyId element values.
        Specified by:
        setIdentifier in interface SignaturePolicyIdentifier
        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:
        java.io.IOException
        java.security.NoSuchAlgorithmException
      • setQualifier

        public void setQualifier​(java.lang.String qualifier)
        Description copied from interface: SignaturePolicyIdentifier
        Sets the policy qualifier, wich must be an URL pointing to the human-readable document (usually a PDF) describing the policy.
        Specified by:
        setQualifier in interface SignaturePolicyIdentifier
        Parameters:
        qualifier - URL to the policy human-readable description document