Class DSSObject

java.lang.Object
eu.europa.esig.dss.xades.DSSObject
All Implemented Interfaces:
Serializable

public class DSSObject extends Object implements Serializable
Allows creation of custom ds:Object element
See Also:
  • Constructor Details

    • DSSObject

      public DSSObject()
      Default constructor
  • Method Details

    • getContent

      public DSSDocument getContent()
      Gets the content of the ds:Object element to be created
      Returns:
      DSSDocument
    • setContent

      public void setContent(DSSDocument content)
      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

      public String getId()
      Gets the Id
      Returns:
      String
    • setId

      public void setId(String id)
      Sets the value for the "Id" attribute
      Parameters:
      id - String
    • getMimeType

      public String getMimeType()
      Gets the MimeType
      Returns:
      String
    • setMimeType

      @Deprecated public void setMimeType(MimeType mimeType)
      Deprecated.
      since DSS 5.12. Use #setMimeType(MimeType.getMimeTypeString())
      Sets the value for the "MimeType" attribute
      Parameters:
      mimeType - MimeType
    • setMimeType

      public void setMimeType(String mimeType)
      Sets the value for the "MimeType" attribute
      Parameters:
      mimeType - String
    • getEncodingAlgorithm

      public String getEncodingAlgorithm()
      Gets the encoding algorithm
      Returns:
      String
    • setEncodingAlgorithm

      public void setEncodingAlgorithm(String encodingAlgorithm)
      Sets the value for the "encoding" attribute
      Parameters:
      encodingAlgorithm - String
    • toString

      public String toString()
      Overrides:
      toString in class Object