Class ExtensionBuilder
java.lang.Object
eu.europa.esig.dss.xades.signature.XAdESBuilder
eu.europa.esig.dss.xades.signature.ExtensionBuilder
- Direct Known Subclasses:
CounterSignatureBuilder
,SignaturePolicyStoreBuilder
,XAdESLevelBaselineT
Builds XAdES signature extension
-
Field Summary
Modifier and TypeFieldDescriptionprotected Element
This field represents the current signature being extended.protected XMLDocumentAnalyzer
The used document analyzerprotected Element
This field represents the signature qualifying propertiesprotected Element
This field represents the unsigned propertiesprotected Element
This field contains unsigned signature propertiesprotected XAdESSignature
This object allows to access DOM signature representation using XPATHFields inherited from class eu.europa.esig.dss.xades.signature.XAdESBuilder
certificateVerifier, documentDom, ENCAPSULATED_TIMESTAMP_PREFIX, ID_PREFIX, params, REFERENCED_DATA, TARGET, TIMESTAMP_PREFIX, URI, xadesPath
-
Constructor Summary
ModifierConstructorDescriptionprotected
Empty constructorprotected
ExtensionBuilder
(CertificateVerifier certificateVerifier) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is used to align children indentsprotected void
Returns or create (if it does not exist) the SignedDataObjectProperties DOM object.protected void
Returns or creates (if it does not exist) the UnsignedPropertiesType DOM object.protected void
Returns or creates (if it does not exist) the UnsignedSignaturePropertiesType DOM object.protected DSSNamespace
This method returns the current used XAdES namespace.protected DSSNamespace
This method returns the current used XMLDSig namespace.protected Element
indentIfPrettyPrint
(Element nodeToIndent, Element oldNode) Indents thenodeToIndent
if pretty-print is enabledprotected XAdESSignature
initializeSignatureBuilder
(XAdESSignature signature) Initializes all variables to be used for signature extensionprotected String
removeNode
(Node nodeToRemove) Removes the givennodeToRemove
from its parentprotected String
removeNodes
(NodeList nodeListToRemove) Removes the givennodeListToRemove
from its parentMethods inherited from class eu.europa.esig.dss.xades.signature.XAdESBuilder
createXmlDocument, getCurrentXAdESElements, getCurrentXAdESPath, getXades141Namespace, incorporateCert, incorporateCertDigest, incorporateDigestMethod, incorporateDigestValue, incorporateDigestValue, incorporateIssuerV1, incorporateIssuerV2, incorporateSPDocSpecification, toXmlIdentifier
-
Field Details
-
xadesSignature
This object allows to access DOM signature representation using XPATH -
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 -
documentAnalyzer
The used document analyzer
-
-
Constructor Details
-
ExtensionBuilder
protected ExtensionBuilder()Empty constructor -
ExtensionBuilder
Default constructor- Parameters:
certificateVerifier
-CertificateVerifier
-
-
Method Details
-
initializeSignatureBuilder
Initializes all variables to be used for signature extension- Parameters:
signature
-XAdESSignature
- Returns:
XAdESSignature
-
ensureUnsignedProperties
protected void ensureUnsignedProperties()Returns or creates (if it does not exist) the UnsignedPropertiesType DOM object. -
ensureUnsignedSignatureProperties
protected void ensureUnsignedSignatureProperties()Returns or creates (if it does not exist) the UnsignedSignaturePropertiesType DOM object. -
ensureSignedDataObjectProperties
protected void ensureSignedDataObjectProperties()Returns or create (if it does not exist) the SignedDataObjectProperties DOM object. -
indentIfPrettyPrint
-
alignNodes
protected void alignNodes()Description copied from class:XAdESBuilder
This method is used to align children indents- Specified by:
alignNodes
in classXAdESBuilder
-
removeNodes
-
removeNode
-
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
- Returns:
DSSNamespace
-
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
- Returns:
DSSNamespace
-