Class DefaultCompiledSignedDocument<T,X extends AdesObject>
java.lang.Object
se.idsec.signservice.integration.document.impl.DefaultCompiledSignedDocument<T,X>
- Type Parameters:
T- the document typeX- the AdES object from the signature
- All Implemented Interfaces:
CompiledSignedDocument<T,X>
public class DefaultCompiledSignedDocument<T,X extends AdesObject>
extends Object
implements CompiledSignedDocument<T,X>
Base class implementing the
CompiledSignedDocument interface.- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCompiledSignedDocument(String id, T document, String mimeType, DocumentEncoder<T> documentEncoder) Constructor.DefaultCompiledSignedDocument(String id, T document, String mimeType, DocumentEncoder<T> documentEncoder, X adesObject) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the AdES object (if present in the signature)Gets the signed document.se.idsec.signservice.integration.document.SignedDocumentGets theSignedDocumentto be returned back in the result to the caller.
-
Constructor Details
-
DefaultCompiledSignedDocument
public DefaultCompiledSignedDocument(String id, T document, String mimeType, DocumentEncoder<T> documentEncoder) Constructor.- Parameters:
id- the document IDdocument- the documentmimeType- document MIME typedocumentEncoder- the document encoder
-
DefaultCompiledSignedDocument
public DefaultCompiledSignedDocument(String id, T document, String mimeType, DocumentEncoder<T> documentEncoder, X adesObject) Constructor.- Parameters:
id- the document IDdocument- the documentmimeType- document MIME typedocumentEncoder- the document encoderadesObject- AdES object (may be null)
-
-
Method Details
-
getDocument
Gets the signed document.- Specified by:
getDocumentin interfaceCompiledSignedDocument<T,X extends AdesObject> - Returns:
- the signed document
-
getSignedDocument
@Nonnull public se.idsec.signservice.integration.document.SignedDocument getSignedDocument()Gets theSignedDocumentto be returned back in the result to the caller.- Specified by:
getSignedDocumentin interfaceCompiledSignedDocument<T,X extends AdesObject> - Returns:
- a SignedDocument object
-
getAdesObject
Gets the AdES object (if present in the signature)- Specified by:
getAdesObjectin interfaceCompiledSignedDocument<T,X extends AdesObject> - Returns:
- the AdES object, or null
-