Package eu.europa.esig.dss.xades
Class DSSObject
java.lang.Object
eu.europa.esig.dss.xades.DSSObject
- All Implemented Interfaces:
Serializable
Allows creation of custom ds:Object element
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the content of the ds:Object element to be createdGets the encoding algorithmgetId()
Gets the IdGets the MimeTypevoid
setContent
(DSSDocument content) Sets the content of ds:Object element to be created Can be XML or any other format (e.g.void
setEncodingAlgorithm
(String encodingAlgorithm) Sets the value for the "encoding" attributevoid
Sets the value for the "Id" attributevoid
setMimeType
(MimeType mimeType) Deprecated.since DSS 5.12.void
setMimeType
(String mimeType) Sets the value for the "MimeType" attributetoString()
-
Constructor Details
-
DSSObject
public DSSObject()Default constructor
-
-
Method Details
-
getContent
Gets the content of the ds:Object element to be created- Returns:
DSSDocument
-
setContent
Sets the content of ds:Object element to be created Can be XML or any other format (e.g. base64 encoded)- Parameters:
content
-DSSDocument
-
getId
Gets the Id- Returns:
String
-
setId
Sets the value for the "Id" attribute- Parameters:
id
-String
-
getMimeType
Gets the MimeType- Returns:
String
-
setMimeType
Deprecated.since DSS 5.12. Use#setMimeType(MimeType.getMimeTypeString())
Sets the value for the "MimeType" attribute- Parameters:
mimeType
-MimeType
-
setMimeType
Sets the value for the "MimeType" attribute- Parameters:
mimeType
-String
-
getEncodingAlgorithm
Gets the encoding algorithm- Returns:
String
-
setEncodingAlgorithm
Sets the value for the "encoding" attribute- Parameters:
encodingAlgorithm
-String
-
toString
-