public interface EDOCSignatureCallback
An application implements a EDOCSignatureCallback and passes it to the EDOC.addSignature(lv.pasts.eme.security.KeyAccessor, EDOCSignatureCallback)
method so that it may interact with the application to retrieve specific data, or to display certain information.
| Modifier and Type | Method and Description |
|---|---|
boolean |
confirmSignature(SignatureType signatureType,
X509Certificate documentSigningCertificate,
X509Certificate clientAuthenticationCertificate)
Request to confirm the selected signature type and certificates that will be used to create the signature.
|
SignatureType |
selectSignatureType(SignatureTypeList signatureTypeList)
Request to select signature type from the given signature type list.
|
void |
signatureProgress()
Method is invoked to notify about progress while creating a signature.
|
SignatureType selectSignatureType(SignatureTypeList signatureTypeList)
An application must return one of the available SignatureType objects.
The signature level must be specified using the SignatureType.setSignatureLevel(int) method.
The available signature properties can be accessed using the SignatureType.getProperties() method.
The mandatory signature properties must be provided using the EDOCProperties.put(String, String) method.
signatureTypeList - SignatureTypeList containing available signature types.boolean confirmSignature(SignatureType signatureType, X509Certificate documentSigningCertificate, X509Certificate clientAuthenticationCertificate)
signatureType - the selected signature type.documentSigningCertificate - the selected signing certificate.clientAuthenticationCertificate - the selected authentication certificate,
or null if client authentication for the current signature is not required.void signatureProgress()