Interface DSSResourcesHandler

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
AbstractResourcesHandler, InMemoryResourcesHandler, TempFileResourcesHandler

public interface DSSResourcesHandler extends Closeable
This class is used to create objects required for a document signing process (e.g. temporary OutputStream, returned DSSDocument, etc.).
  • Method Summary

    Modifier and Type
    Method
    Description
    This method creates a new OutputStream to be used as an output for a temporary signature document
    This method creates a new DSSDocument representing a signed document, based on the created OutputStream.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • createOutputStream

      OutputStream createOutputStream() throws IOException
      This method creates a new OutputStream to be used as an output for a temporary signature document
      Returns:
      OutputStream
      Throws:
      IOException - if an exception occurs during OutputStream creation
    • writeToDSSDocument

      DSSDocument writeToDSSDocument() throws IOException
      This method creates a new DSSDocument representing a signed document, based on the created OutputStream.
      Returns:
      DSSDocument
      Throws:
      IOException - if an exception occurs during DSSDocument creation