public interface EDOCSignature
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getCertificate()
Returns the certificate used to create this signature.
|
String |
getID()
Returns the ID of this signature.
|
TimeStamp |
getSignatureTimeStamp()
Returns timestamp, or null if signature has no timestamp.
|
SignatureType |
getSignatureType()
Returns the signature type used to create this signature.
|
byte[] |
getSignatureValue()
Returns the signature value of this signature.
|
byte[] |
getSignatureValueImprintDigest()
Returns a SHA-1 message digest representing the signature value imprint.
|
byte[] |
getSignedDigest()
Returns the signed digest value.
|
Date |
getSigningTime()
Returns the date when this signature was created.
|
boolean |
isDigitalSeal()
Returns true if this signature represents a digital seal.
|
EDOCValidatorResult |
validate(EDOCValidatorListener listener)
Validates this signature.
|
String getID()
EDOCValidatorResult validate(EDOCValidatorListener listener) throws EDOCException
To notify the user about the validation process, validation status events are generated.
To get these notifications, an application must specify an instance
of EDOCValidatorListener object which implements the required listener methods.
listener - the EDOCValidatorListener to be notified.EDOCException - if EDOC validation cannot be performed.X509Certificate getCertificate() throws EDOCException
EDOCException - if certificate cannot be retrieved.TimeStamp getSignatureTimeStamp()
Date getSigningTime()
SignatureType getSignatureType()
SignatureType.getProperties()byte[] getSignatureValue()
byte[] getSignatureValueImprintDigest()
Signature value imprint digest is used to create a signature timestamp.
The input for the timestamp hash computation is the ds:SignatureValue XML element, as defined in ETSI TS 101 903 v1.3.2.
getSignatureTimeStamp(),
TimeStamp.getMessageImprintDigest()boolean isDigitalSeal()
A digital seal is determined from the signing certificate.
byte[] getSignedDigest()
throws EDOCException
NOTE: The digest value is DER encoded DigestInfo value, as defined by PKCS#7 Digest-encryption process (RFC 2315).
EDOCException - if the signed digest value cannot be resolved.