Class XAdESLevelBaselineT

    • Field Detail

    • Constructor Detail

      • XAdESLevelBaselineT

        public XAdESLevelBaselineT​(CertificateVerifier certificateVerifier)
        The default constructor for XAdESLevelBaselineT.
    • Method Detail

      • extendSignatureTag

        protected void extendSignatureTag()
                                   throws DSSException
        Extends the signature to a desired level. This method is overridden by other profiles.
        For -T profile adds the SignatureTimeStamp element which contains a single HashDataInfo element that refers to the ds:SignatureValue element of the [XMLDSIG] signature. The timestamp token is obtained from TSP source.
        Adds <SignatureTimeStamp> segment into <UnsignedSignatureProperties> element.
        Throws:
        DSSException
      • setTspSource

        public void setTspSource​(TSPSource tspSource)
        Sets the TSP source to be used when extending the digital signature
        Parameters:
        tspSource - the tspSource to set
      • incorporateCertificateValues

        protected Element incorporateCertificateValues​(Element parentDom,
                                                       ValidationContext validationContext)
        This method incorporates all certificates passed as parameter :
         
         	<xades:CertificateValues>
        		<xades:EncapsulatedX509Certificate>MIIC9TC...</xades:EncapsulatedX509Certificate>
        		...
         	</xades:CertificateValues>
         
         
        Parameters:
        parentDom - the parent element
        validationContext - the validation context with all certificates
      • incorporateRevocationValues

        protected Element incorporateRevocationValues​(Element parentDom,
                                                      ValidationContext validationContext)
        This method incorporates revocation values.
                
         		<xades:RevocationValues>
         	
         
        Parameters:
        parentDom - the parent element
        validationContext - the validation context with the revocation data
      • incorporateCertificateValues

        protected void incorporateCertificateValues​(Element parentDom,
                                                    ValidationContext validationContext,
                                                    String indent)
        This method incorporates all certificates passed as parameter, as well as adds missing indents if the parameter is specified
         
         	<xades:CertificateValues>
        		<xades:EncapsulatedX509Certificate>MIIC9TC...</xades:EncapsulatedX509Certificate>
        		...
         	</xades:CertificateValues>
         
         
        Parameters:
        parentDom - the parent element
        validationContext - the validation context with all certificates
        indent - String to add between elements (if not NULL)
      • incorporateRevocationValues

        protected void incorporateRevocationValues​(Element parentDom,
                                                   ValidationContext validationContext,
                                                   String indent)
        This method incorporates revocation values, as well as adds missing indents if the parameter is specified:
                
         		<xades:RevocationValues>
         	
         
        Parameters:
        parentDom - the parent element
        validationContext - the validation context with the revocation data
        indent - String to add between elements (if not NULL)
      • createXAdESTimeStampType

        protected void createXAdESTimeStampType​(TimestampType timestampType,
                                                String timestampC14nMethod,
                                                byte[] digestValue)
                                         throws DSSException
        Creates any XAdES TimeStamp object representation. The timestamp token is obtained from TSP source
        Parameters:
        timestampType - TimestampType
        timestampC14nMethod - canonicalization method
        digestValue - array of byte representing the digest to timestamp
        Throws:
        DSSException - in case of any error