Class SignedDocument
java.lang.Object
se.idsec.signservice.integration.document.SignedDocument
- All Implemented Interfaces:
Serializable,Extensible
Represents a signed document.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forSignedDocumentobjects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the extension parameters for the instance.getId()Gets the unique ID for this document (within the current operation).Gets the MIME type of the signed document.Gets the signed document as a Base64-encoded byte string.voidsetExtension(Extension extension) Assigns the extension parameters for the instance.voidAssigns the unique ID for this document (within the current operation).voidsetMimeType(String mimeType) Assigns the MIME type of the signed document.voidsetSignedContent(String signedContent) Assigns the signed document as a Base64-encoded byte string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.idsec.signservice.integration.core.Extensible
addExtensionValue, getExtensionValue
-
Constructor Details
-
SignedDocument
public SignedDocument()
-
-
Method Details
-
getId
Gets the unique ID for this document (within the current operation).- Returns:
- unique ID for this document
-
setId
Assigns the unique ID for this document (within the current operation).- Parameters:
id- unique ID for this document
-
getSignedContent
Gets the signed document as a Base64-encoded byte string.- Returns:
- the signed document content (Base64-encoded)
-
setSignedContent
Assigns the signed document as a Base64-encoded byte string.- Parameters:
signedContent- the signed document content (Base64-encoded)
-
getMimeType
Gets the MIME type of the signed document. SeeDocumentTypefor the supported types.- Returns:
- the MIME type for the signed document
-
setMimeType
Assigns the MIME type of the signed document. SeeDocumentTypefor the supported types.- Parameters:
mimeType- the MIME type for the signed document
-
setExtension
Assigns the extension parameters for the instance.- Specified by:
setExtensionin interfaceExtensible- Parameters:
extension- the extension
-
getExtension
Returns the extension parameters for the instance.- Specified by:
getExtensionin interfaceExtensible- Returns:
- the extension, or
nullif no extensions are set
-