Important! 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.
Note: 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.
SignChallengeNonBlocking(challenge, browser, onComplete, onFailure)
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. |
arcotClient.SignChallengeNonBlocking(challenge, document, challengeSigned,
// Here we inline the error method, we could have called an external function instead
function (challenge, error) {
alert("Failed to sign the challenge, error: " + error);});
function challengeSigned(challenge, signedChallenge) {
// Set the signed challenge in the form
document.getElementByID("SignedChallenge").value = signedChallenge;
// Submit the form
document.getElementByID("LoginForm").submit();
}
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|