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
Modifier and TypeClassDescriptionstatic class
Builder forSignedDocument
objects. -
Constructor Summary
ConstructorDescriptionSignedDocument
(String id, String signedContent, String mimeType, Extension extension) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns the extension parameters for the instance.getId()
The unique ID for this document (within the current operation).The MIME type of the signed document.The signed document as a Base64-encoded byte string.void
setExtension
(Extension extension) Assigns the extension parameters for the instance.void
The unique ID for this document (within the current operation).void
setMimeType
(String mimeType) The MIME type of the signed document.void
setSignedContent
(String signedContent) The signed document as a Base64-encoded byte string.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface se.idsec.signservice.integration.core.Extensible
addExtensionValue, getExtensionValue
-
Constructor Details
-
SignedDocument
public SignedDocument() -
SignedDocument
-
-
Method Details
-
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
-
builder
-
toString
-
setId
The unique ID for this document (within the current operation).- Parameters:
id
- unique ID for this document
-
getId
The unique ID for this document (within the current operation).- Returns:
- unique ID for this document
-
setSignedContent
The signed document as a Base64-encoded byte string.- Parameters:
signedContent
- the signed document content (Base64-encoded)
-
getSignedContent
The signed document as a Base64-encoded byte string.- Returns:
- the signed document content (Base64-encoded)
-
setMimeType
The MIME type of the signed document. SeeDocumentType
for the supported types.- Parameters:
mimeType
- the MIME type for the signed document
-
getMimeType
The MIME type of the signed document. SeeDocumentType
for the supported types.- Returns:
- the MIME type for the signed document
-