Class ExtensionBuilder
java.lang.Object
eu.europa.esig.dss.xades.signature.XAdESBuilder
eu.europa.esig.dss.xades.signature.ExtensionBuilder
- Direct Known Subclasses:
XAdESLevelBaselineT
public abstract class ExtensionBuilder extends XAdESBuilder
-
Field Summary
Fields Modifier and Type Field Description protected Element
currentSignatureDom
This field represents the current signature being extended.protected Element
qualifyingPropertiesDom
This field represents the signature qualifying propertiesprotected Element
unsignedPropertiesDom
This field represents the unsigned propertiesprotected Element
unsignedSignaturePropertiesDom
This field contains unsigned signature propertiesprotected XAdESSignature
xadesSignature
Fields inherited from class eu.europa.esig.dss.xades.signature.XAdESBuilder
certificateVerifier, documentDom, params, REFERENCED_DATA, SIGNATURE, TARGET, URI, xadesPaths
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExtensionBuilder(CertificateVerifier certificateVerifier)
-
Method Summary
Modifier and Type Method Description protected void
alignNodes()
protected void
assertSignatureValid(XAdESSignature xadesSignature)
protected void
ensureSignedDataObjectProperties()
Returns or create (if it does not exist) the SignedDataObjectProperties DOM object.protected void
ensureUnsignedProperties()
Returns or creates (if it does not exist) the UnsignedPropertiesType DOM object.protected void
ensureUnsignedSignatureProperties()
Returns or creates (if it does not exist) the UnsignedSignaturePropertiesType DOM object.protected DSSNamespace
getXadesNamespace()
This method returns the current used XAdES namespace.protected DSSNamespace
getXmldsigNamespace()
This method returns the current used XMLDSig namespace.protected Element
indentIfPrettyPrint(Element nodeToIndent, Element oldNode)
protected String
removeChild(Node parentNode, Node nodeToRemove)
Removes the given nodeToRemove from its parentNodeMethods inherited from class eu.europa.esig.dss.xades.signature.XAdESBuilder
createXmlDocument, getCurrentXAdESElements, getCurrentXAdESPaths, getXades141Namespace, incorporateCert, incorporateCertificateRef, incorporateDigestMethod, incorporateDigestValue, incorporateDigestValue, incorporateIssuerV1, incorporateIssuerV2
-
Field Details
-
xadesSignature
-
currentSignatureDom
This field represents the current signature being extended. -
qualifyingPropertiesDom
This field represents the signature qualifying properties -
unsignedPropertiesDom
This field represents the unsigned properties -
unsignedSignaturePropertiesDom
This field contains unsigned signature properties
-
-
Constructor Details
-
Method Details
-
ensureUnsignedProperties
protected void ensureUnsignedProperties()Returns or creates (if it does not exist) the UnsignedPropertiesType DOM object.- Throws:
DSSException
-
ensureUnsignedSignatureProperties
protected void ensureUnsignedSignatureProperties()Returns or creates (if it does not exist) the UnsignedSignaturePropertiesType DOM object.- Throws:
DSSException
-
ensureSignedDataObjectProperties
protected void ensureSignedDataObjectProperties()Returns or create (if it does not exist) the SignedDataObjectProperties DOM object.- Throws:
DSSException
-
assertSignatureValid
-
indentIfPrettyPrint
-
alignNodes
protected void alignNodes()- Specified by:
alignNodes
in classXAdESBuilder
-
removeChild
Removes the given nodeToRemove from its parentNode -
getXmldsigNamespace
This method returns the current used XMLDSig namespace. Try to determine from the signature, from the parameters or the default value- Overrides:
getXmldsigNamespace
in classXAdESBuilder
-
getXadesNamespace
This method returns the current used XAdES namespace. Try to determine from the signature, from the parameters or the default value- Overrides:
getXadesNamespace
in classXAdESBuilder
-