Previous Topic: AttachCertToCurrentCard()Next Topic: GetErrorCode()


CreateOfflineKeyBag()

This method is used to create an offline key bag and store it in the user’s ArcotID PKI. The offline key bag contains a copy of user’s certificates, which help users to access their protected data offline.

Syntax

boolean CreateOfflineKeyBag(walletName, orgName, onlinePIN, offlinePIN)

Parameters

The following are the parameters of this method:

Parameter

Type

Description

walletName

string

Wallet name of an ArcotID PKI for which the offline key bag has to be created.

orgName

string

The organization name to which the user belongs to.

onlinePIN

string

The ArcotID PKI password that is used to authenticate to the Key Authority server and fetch the latest key bag.

offlinePIN

string

The password that the user needs to use to access their certificates offline.

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  userIDStr  = "johnsmith";
var orgName = "Acme Vendor";
var onlinePINStr = "12345^";
var offlinePINStr = "123456"
var response = arcotClient.CreateOfflineKeyBag(userIDStr, orgName, onlinePINStr, offlinePINStr);