public abstract class AbstractODFSignatureService extends AbstractXmlSignatureService
http://wiki.services.openoffice.org/wiki/Security/Digital_Signatures
Constructor and Description |
---|
AbstractODFSignatureService(DigestAlgo digestAlgo) |
Modifier and Type | Method and Description |
---|---|
protected Document |
getEnvelopingDocument()
Gives back the enveloping document.
|
String |
getFilesDigestAlgorithm() |
protected abstract URL |
getOpenDocumentURL()
Returns the URL of the ODF to be signed.
|
protected String |
getSignatureDescription()
Gives back the human-readable description of what the citizen will be
signing.
|
protected OutputStream |
getSignedDocumentOutputStream()
Gives back the output stream to which to write the signed XML document.
|
protected abstract OutputStream |
getSignedOpenDocumentOutputStream()
The output stream to which to write the signed ODF file.
|
protected URIDereferencer |
getURIDereferencer()
Override this method to change the URI dereferener used by the signing
engine.
|
protected XAdESSignatureFacet |
getXAdESSignatureFacet()
Gives back the used XAdES signature facet.
|
addSignatureFacet, getCanonicalizationMethod, getSignatureDigestAlgorithm, getTemporaryDataStorage, loadDocument, loadDocumentNoClose, postSign, preSign, setSignatureId, setSignatureNamespacePrefix, writeDocument, writeDocumentNoClosing, writeDocumentNoClosing
public AbstractODFSignatureService(DigestAlgo digestAlgo)
protected XAdESSignatureFacet getXAdESSignatureFacet()
protected abstract URL getOpenDocumentURL()
protected final URIDereferencer getURIDereferencer()
AbstractXmlSignatureService
getURIDereferencer
in class AbstractXmlSignatureService
protected String getSignatureDescription()
AbstractXmlSignatureService
getSignatureDescription
in class AbstractXmlSignatureService
protected final OutputStream getSignedDocumentOutputStream()
AbstractXmlSignatureService
getSignedDocumentOutputStream
in class AbstractXmlSignatureService
protected abstract OutputStream getSignedOpenDocumentOutputStream()
public final String getFilesDigestAlgorithm()
protected final Document getEnvelopingDocument() throws ParserConfigurationException, IOException, SAXException
AbstractXmlSignatureService
null
in case
ds:Signature should be the top-level element. Implementations can
override this method to provide a custom enveloping document.getEnvelopingDocument
in class AbstractXmlSignatureService
IOException
SAXException
ParserConfigurationException
Copyright © 2008-2015 FedICT. All Rights Reserved.