public class AbstractASiCSignatureService extends AbstractXmlSignatureService implements SignatureService
Constructor and Description |
---|
AbstractASiCSignatureService(InputStream documentInputStream,
DigestAlgo digestAlgo,
RevocationDataService revocationDataService,
TimeStampService timeStampService,
String claimedRole,
IdentityDTO identity,
byte[] photo,
TemporaryDataStorage temporaryDataStorage,
OutputStream documentOutputStream) |
Modifier and Type | Method and Description |
---|---|
protected Document |
getEnvelopingDocument()
Gives back the enveloping document.
|
String |
getFilesDigestAlgorithm() |
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 TemporaryDataStorage |
getTemporaryDataStorage()
Gives back a temporary data storage component.
|
protected URIDereferencer |
getURIDereferencer()
Override this method to change the URI dereferener used by the signing
engine.
|
DigestInfo |
preSign(List<DigestInfo> digestInfos,
List<X509Certificate> signingCertificateChain,
IdentityDTO identity,
AddressDTO address,
byte[] photo) |
addSignatureFacet, getCanonicalizationMethod, getSignatureDigestAlgorithm, loadDocument, loadDocumentNoClose, postSign, setSignatureId, setSignatureNamespacePrefix, writeDocument, writeDocumentNoClosing, writeDocumentNoClosing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postSign
public AbstractASiCSignatureService(InputStream documentInputStream, DigestAlgo digestAlgo, RevocationDataService revocationDataService, TimeStampService timeStampService, String claimedRole, IdentityDTO identity, byte[] photo, TemporaryDataStorage temporaryDataStorage, OutputStream documentOutputStream) throws IOException
IOException
protected String getSignatureDescription()
AbstractXmlSignatureService
getSignatureDescription
in class AbstractXmlSignatureService
public String getFilesDigestAlgorithm()
getFilesDigestAlgorithm
in interface SignatureService
protected TemporaryDataStorage getTemporaryDataStorage()
AbstractXmlSignatureService
getTemporaryDataStorage
in class AbstractXmlSignatureService
protected URIDereferencer getURIDereferencer()
AbstractXmlSignatureService
getURIDereferencer
in class AbstractXmlSignatureService
protected OutputStream getSignedDocumentOutputStream()
AbstractXmlSignatureService
getSignedDocumentOutputStream
in class AbstractXmlSignatureService
public DigestInfo preSign(List<DigestInfo> digestInfos, List<X509Certificate> signingCertificateChain, IdentityDTO identity, AddressDTO address, byte[] photo) throws NoSuchAlgorithmException
preSign
in interface SignatureService
preSign
in class AbstractXmlSignatureService
NoSuchAlgorithmException
protected 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-2016 FedICT. All Rights Reserved.