SignChallengeNonBlocking()
This function resolves GUI issues related to the Arcot applet, and enables to support the ATM GUI applet on Mac OS X. The API call receives callback functions for success and error handling.
aa91
This method is currently
not
supported for Signed Java Applet client.This function resolves GUI issues related to the Arcot applet, and enables to support the ATM GUI applet on Mac OS X. The API call receives callback functions for success and error handling.
This function is not implemented in the native plugin. If called on the native plugin, the native plugin will return the error code ERR_FUNCTION_NOT_IMPLEMENTED.
Syntax
SignChallengeNonBlocking(challenge, browser, onComplete, onFailure)
Parameters
The following are parameters of the method:
Parameter
| Description
|
challenge | The challenge that has to be signed. |
browser | This option decides on where the callback functions should be invoked. This is an optional parameter. If set, the functions are invoked on a different window. If the value is null, the current browser is used. |
onComplete | This is a JavaScript function that is invoked after the challenge has been successfully signed. The parameters passed are challenge and the signed challenge. |
onFailure | A Javascript function that is invoked when the signing has failed. The parameters passed are challenge and the error message. |
Example
arcotClient.SignChallengeNonBlocking(challenge, document, challengeSigned,// Here we inline the error method, we could have called an external function insteadfunction (challenge, error) {alert("Failed to sign the challenge, error: " + error);});function challengeSigned(challenge, signedChallenge) {// Set the signed challenge in the formdocument.getElementByID("SignedChallenge").value = signedChallenge;// Submit the formdocument.getElementByID("LoginForm").submit();}