public interface EDoc2QualifiedSignature extends EDoc2Signature
SignatureProfile,
EDoc2Signature.getProfile()KEY_SIGNATURE_METHOD_URI, SIGNATURE_METHOD_ECDSA_SHA256, SIGNATURE_METHOD_ECDSA_SHA384, SIGNATURE_METHOD_ECDSA_SHA512, SIGNATURE_METHOD_RSA_SHA1, SIGNATURE_METHOD_RSA_SHA224, SIGNATURE_METHOD_RSA_SHA256, SIGNATURE_METHOD_RSA_SHA384, SIGNATURE_METHOD_RSA_SHA512| Modifier and Type | Method and Description |
|---|---|
byte[] |
getSignatureValueDigest(String messageDigestAlgorithm)
Returns hash value of the signature value.
|
void |
setCertificateValues(List<byte[]> certificateValues)
Sets a list of X.509 certificates that are required to validate the signature.
|
void |
setRevocationValues(List<byte[]> ocspValues,
List<byte[]> crlValues)
Sets a list of OCSP responses and a list of CRL to the signature
|
void |
setSignatureTimestamps(List<byte[]> signatureTimestamps)
Sets a list of ASN.1 encoded signature timestamps to the signature
|
archivedSignature, basicSignature, complete, getArchiveTimestamps, getCertificateValues, getClaimedSigningTime, getCRLs, getId, getOCSPResponses, getProfile, getSignatureMethodAlgorithm, getSignatureProductionPlace, getSignatureTimestamps, getSignatureValue, getSignerClaimedRoles, getSigningCertificate, qualifiedSignaturevalidate, validatebyte[] getSignatureValueDigest(String messageDigestAlgorithm) throws EDoc2Exception
messageDigestAlgorithm - digest algorithm name
See the MessageDigest section in the
Java Cryptography Architecture Standard Algorithm Name Documentation
for information about standard algorithm names. For example: SHA-1 or SHA-256EDoc2Exception - if no Provider supports a MessageDigestSpi implementation for the specified algorithmProvidervoid setSignatureTimestamps(List<byte[]> signatureTimestamps) throws EDoc2Exception
signatureTimestamps - a list of signature timestampsEDoc2ExceptionEDoc2Signature.getSignatureTimestamps()void setCertificateValues(List<byte[]> certificateValues) throws EDoc2Exception
certificateValues - EDoc2ExceptionEDoc2Signature.getCertificateValues()void setRevocationValues(List<byte[]> ocspValues, List<byte[]> crlValues) throws EDoc2Exception
ocspValues - a list of DER encoded OCSP responses accordingly to Online Certificate Status Protocol (RFC 2560).crlValues - a list of X.509 CRLEDoc2ExceptionEDoc2Signature.getOCSPResponses(),
EDoc2Signature.getCRLs()