Previous Topic: ArcotID PKI Client Javascript APIsNext Topic: AttachCertToCurrentCard()


AddCurrentCardToWallet()

This method adds the current Arcot card to the named wallet stored in the client machine. If the mentioned file is not present, a new one is created.

Note: This is a deprecated function, use ImportArcotID() instead.

Syntax

boolean AddCurrentCardToWallet(WalletName)

Parameters

The following are the parameters of this method:

Parameter

Type

Description

WalletName

string

File name for the new wallet file (without the .wlt extension.)

Returns

If the method is successful, then it returns TRUE. If the method is unsuccessful, then it returns FALSE.

Example

var arcotClient = new ArcotClient();
var walletnameString = "GuestUser";

if (arcotClient.AddCurrentCardToWallet(walletnameString))
{
    document.write("<P>Card added to wallet successfully</P>");
}
else
{
    document.write("<P>Failed to add card to wallet</P>");
}