SignDoc SDK (Java)
5.0.0
|
Interface for creating an ECDSA signature. More...
Public Member Functions | |
byte[] | sign (Source aSource, String aHashAlgorithm) |
Compute an ECDSA signature. More... | |
int | getSignatureSize () |
Get the size of the signature that will be computed by sign(). More... | |
byte[] | getSigningCertificate () |
Get the signing certificate. More... | |
int | getCertificateCount () |
Get the number of available intermediate certificates. More... | |
byte[] | getCertificate (int aIndex) |
Get an intermediate certificate. More... | |
String | getErrorMessage () |
Get an error message for the last operation. More... | |
Interface for creating an ECDSA signature.
Selection of the certificate is up to the implementation.
byte [] getCertificate | ( | int | aIndex | ) |
Get an intermediate certificate.
[in] | aIndex | The zero-based index of the intermediate certificate, see getCertificateCount(). |
int getCertificateCount | ( | ) |
Get the number of available intermediate certificates.
String getErrorMessage | ( | ) |
Get an error message for the last operation.
After any method of this object has been called, this function shall return an error message (possibly empty if the most recently called method didn't fail).
int getSignatureSize | ( | ) |
byte [] getSigningCertificate | ( | ) |
Get the signing certificate.
byte [] sign | ( | Source | aSource, |
String | aHashAlgorithm | ||
) |
Compute an ECDSA signature.
[in] | aSource | An object providing data to be hashed and signed. |
[in] | aHashAlgorithm | The hash algorithm to be used for the signature:
|