|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxades4j.properties.DataObjectDesc
xades4j.production.EnvelopedXmlObject
public final class EnvelopedXmlObject
Represents content (tipically 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.
DataObjectDesc,
DataObjectReference| Constructor Summary | |
|---|---|
EnvelopedXmlObject(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 | |
|---|---|
String |
getEncoding()
Gets the encoding of the content. |
String |
getMimeType()
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnvelopedXmlObject(Node content)
content - the XML content
NullPointerException - if content is null
public EnvelopedXmlObject(Node content,
String mimeType,
String encoding)
content - the XML contentmimeType - the mime type of the content (may be null)encoding - the encoding of the content (may be null)
NullPointerException - if content is null| Method Detail |
|---|
public String getEncoding()
null if not specifiedpublic String getMimeType()
null if not specified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||