Package xades4j.production
Class EnvelopedXmlObject
java.lang.Object
xades4j.properties.DataObjectDesc
xades4j.production.EnvelopedXmlObject
Represents content (usually XML) that will be enveloped in the signature.
Each instance of this class will result in a
ds:Object
in the final
XAdES signature, which will contain the data. Also, this Object
will
be covered by a ds:Reference
so that it is actually included in the
signature.
If one wants to add content other than XML, a text node can be used.
- Author:
- Luís
- See Also:
-
Constructor Summary
ConstructorDescriptionEnvelopedXmlObject
(Node content) Creates a new instance with the given context.EnvelopedXmlObject
(Node content, String mimeType, String encoding) Creates a new instance with the given content, mime type and encoding. -
Method Summary
Modifier and TypeMethodDescriptionGets the encoding of the content.Gets the mime type of the content.Methods inherited from class xades4j.properties.DataObjectDesc
getSignedDataObjProps, getTransforms, getUnsignedDataObjProps, hasProperties, withCommitmentType, withDataObjectFormat, withDataObjectTimeStamp, withDataObjectTimeStamp, withOtherDataObjectProperty, withOtherDataObjectProperty, withTransform
-
Constructor Details
-
EnvelopedXmlObject
Creates a new instance with the given context.- Parameters:
content
- the XML content- Throws:
NullPointerException
- ifcontent
isnull
-
EnvelopedXmlObject
Creates a new instance with the given content, mime type and encoding.- Parameters:
content
- the XML contentmimeType
- the mime type of the content (may benull
)encoding
- the encoding of the content (may benull
)- Throws:
NullPointerException
- ifcontent
isnull
-
-
Method Details
-
getEncoding
Gets the encoding of the content.- Returns:
- the enconding or
null
if not specified
-
getMimeType
Gets the mime type of the content.- Returns:
- the mime type or
null
if not specified
-