public interface SignatureService
| Modifier and Type | Method and Description |
|---|---|
String |
getFilesDigestAlgorithm()
Gives back the digest algorithm to be used for construction of the digest
infos of the preSign method.
|
void |
postSign(byte[] signatureValue,
List<X509Certificate> signingCertificateChain)
Post-sign callback method.
|
DigestInfo |
preSign(List<DigestInfo> digestInfos,
List<X509Certificate> signingCertificateChain,
IdentityDTO identity,
AddressDTO address,
byte[] photo)
Pre-sign callback method.
|
String getFilesDigestAlgorithm()
null if no pre-sign digest infos are required.#preSign(List, List)DigestInfo preSign(List<DigestInfo> digestInfos, List<X509Certificate> signingCertificateChain, IdentityDTO identity, AddressDTO address, byte[] photo) throws NoSuchAlgorithmException, AuthorizationException
TODO: service must be able to throw some exception on failure.
digestInfos - the optional list of digest infos.signingCertificateChain - the optional list of certificates.identity - the optional identity.address - the optional identity address.photo - the optional identity photo.NoSuchAlgorithmExceptionAuthorizationExceptionvoid postSign(byte[] signatureValue,
List<X509Certificate> signingCertificateChain)
throws ExpiredCertificateSecurityException,
RevokedCertificateSecurityException,
TrustCertificateSecurityException,
CertificateSecurityException,
SecurityException
signatureValue - signingCertificateChain - the optional chain of signing certificates.ExpiredCertificateSecurityExceptionRevokedCertificateSecurityExceptionTrustCertificateSecurityExceptionCertificateSecurityExceptionSecurityExceptionCopyright © 2008-2018 FedICT. All Rights Reserved.