Class XAdESLevelBaselineT
java.lang.Object
eu.europa.esig.dss.xades.signature.XAdESBuilder
eu.europa.esig.dss.xades.signature.ExtensionBuilder
eu.europa.esig.dss.xades.signature.XAdESLevelBaselineT
- All Implemented Interfaces:
- SignatureExtension<XAdESSignatureParameters>
- Direct Known Subclasses:
- XAdESLevelBaselineLT,- XAdESLevelC
public class XAdESLevelBaselineT extends ExtensionBuilder implements SignatureExtension<XAdESSignatureParameters>
-T profile of XAdES signature
- 
Field SummaryFields inherited from class eu.europa.esig.dss.xades.signature.ExtensionBuildercurrentSignatureDom, qualifyingPropertiesDom, unsignedPropertiesDom, unsignedSignaturePropertiesDom, xadesSignatureFields inherited from class eu.europa.esig.dss.xades.signature.XAdESBuildercertificateVerifier, documentDom, params, REFERENCED_DATA, SIGNATURE, TARGET, URI, xadesPaths
- 
Constructor SummaryConstructors Constructor Description XAdESLevelBaselineT(CertificateVerifier certificateVerifier)The default constructor for XAdESLevelBaselineT.
- 
Method SummaryModifier and Type Method Description protected voidcreateXAdESTimeStampType(TimestampType timestampType, String timestampC14nMethod, byte[] digestValue)Creates any XAdES TimeStamp object representation.DSSDocumentextendSignatures(DSSDocument dssDocument, XAdESSignatureParameters params)Extends the level of the signatures contained in a document.protected voidextendSignatureTag()Extends the signature to a desired level.protected ValidationDataForInclusiongetValidationDataForInclusion(ValidationContext validationContext)Returns a XAdES ValidationDataForInclusion (LT-, XL- level)protected ElementincorporateCertificateValues(Element parentDom, Collection<CertificateToken> certificatesToBeAdded)This method incorporates all certificates passed as parameter :protected voidincorporateCertificateValues(Element parentDom, Collection<CertificateToken> certificatesToBeAdded, String indent)This method incorporates all certificates passed as parameter, as well as adds missing indents if the parameter is specifiedprotected ElementincorporateRevocationValues(Element parentDom, Collection<CRLToken> crlsToAdd, Collection<OCSPToken> ocspsToAdd)This method incorporates revocation values.protected voidincorporateRevocationValues(Element parentDom, Collection<CRLToken> crlsToAdd, Collection<OCSPToken> ocspsToAdd, String indent)This method incorporates revocation values, as well as adds missing indents if the parameter is specified:voidsetTspSource(TSPSource tspSource)Sets the TSP source to be used when extending the digital signatureMethods inherited from class eu.europa.esig.dss.xades.signature.ExtensionBuilderalignNodes, assertSignatureValid, ensureSignedDataObjectProperties, ensureUnsignedProperties, ensureUnsignedSignatureProperties, getXadesNamespace, getXmldsigNamespace, indentIfPrettyPrint, removeChildMethods inherited from class eu.europa.esig.dss.xades.signature.XAdESBuildercreateXmlDocument, getCurrentXAdESElements, getCurrentXAdESPaths, getXades141Namespace, incorporateCert, incorporateCertificateRef, incorporateDigestMethod, incorporateDigestValue, incorporateDigestValue, incorporateIssuerV1, incorporateIssuerV2
- 
Field Details
- 
Constructor Details- 
XAdESLevelBaselineTThe default constructor for XAdESLevelBaselineT.
 
- 
- 
Method Details- 
extendSignaturespublic DSSDocument extendSignatures(DSSDocument dssDocument, XAdESSignatureParameters params) throws DSSExceptionDescription copied from interface:SignatureExtensionExtends the level of the signatures contained in a document.- Specified by:
- extendSignaturesin interface- SignatureExtension<XAdESSignatureParameters>
- Parameters:
- dssDocument- The signed document to be signed
- Returns:
- Throws:
- DSSException
 
- 
extendSignatureTagExtends 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
 
- 
setTspSourceSets the TSP source to be used when extending the digital signature- Parameters:
- tspSource- the tspSource to set
 
- 
getValidationDataForInclusionprotected ValidationDataForInclusion getValidationDataForInclusion(ValidationContext validationContext)Returns a XAdES ValidationDataForInclusion (LT-, XL- level)- Parameters:
- validationContext- a signature- ValidationContext
- Returns:
- ValidationDataForInclusion
 
- 
incorporateCertificateValuesprotected Element incorporateCertificateValues(Element parentDom, Collection<CertificateToken> certificatesToBeAdded)This method incorporates all certificates passed as parameter :<xades:CertificateValues> <xades:EncapsulatedX509Certificate>MIIC9TC...</xades:EncapsulatedX509Certificate> ... </xades:CertificateValues>- Parameters:
- parentDom- the parent element
- certificatesToBeAdded- a collection of- CertificateTokens to be added into the signature values element
- Returns:
- Elementincorporated signature values element
 
- 
incorporateRevocationValuesprotected Element incorporateRevocationValues(Element parentDom, Collection<CRLToken> crlsToAdd, Collection<OCSPToken> ocspsToAdd)This method incorporates revocation values.<xades:RevocationValues>
- 
incorporateCertificateValuesprotected void incorporateCertificateValues(Element parentDom, Collection<CertificateToken> certificatesToBeAdded, 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
- certificatesToBeAdded- the certificates to be added into the signature
- indent-- Stringto add between elements (if not NULL)
 
- 
incorporateRevocationValuesprotected void incorporateRevocationValues(Element parentDom, Collection<CRLToken> crlsToAdd, Collection<OCSPToken> ocspsToAdd, String indent)This method incorporates revocation values, as well as adds missing indents if the parameter is specified:<xades:RevocationValues>
- 
createXAdESTimeStampTypeprotected void createXAdESTimeStampType(TimestampType timestampType, String timestampC14nMethod, byte[] digestValue) throws DSSExceptionCreates any XAdES TimeStamp object representation. The timestamp token is obtained from TSP source- Parameters:
- timestampType-- TimestampType
- timestampC14nMethod- canonicalization method
- digestValue- array of- byterepresenting the digest to timestamp
- Throws:
- DSSException- in case of any error
 
 
-