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 class
Builder forSignedDocument
objects. -
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.void
setExtension
(Extension extension) Assigns the extension parameters for the instance.void
Assigns the unique ID for this document (within the current operation).void
setMimeType
(String mimeType) Assigns the MIME type of the signed document.void
setSignedContent
(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, wait
Methods 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. SeeDocumentType
for the supported types.- Returns:
- the MIME type for the signed document
-
setMimeType
Assigns the MIME type of the signed document. SeeDocumentType
for the supported types.- Parameters:
mimeType
- the MIME type for the signed document
-
setExtension
Assigns the extension parameters for the instance.- Specified by:
setExtension
in interfaceExtensible
- Parameters:
extension
- the extension
-
getExtension
Returns the extension parameters for the instance.- Specified by:
getExtension
in interfaceExtensible
- Returns:
- the extension, or
null
if no extensions are set
-