Nexus Documentation
Breadcrumbs

Virtual smart card - Manage option to decide how long the virtual smart card shall be valid

This article describes how to manage the option to decide how long the virtual smart card shall be valid in the use case Get virtual smart card (self-service user) in the Virtual smart card package. A script in Identity Manager Admin is used to manage the options.

See a list of all available options in the Smart ID use cases for the Virtual smart card package here: Virtual smart card - Options

Prerequisites

Prerequisites

-

Step-by-step instruction for the administrator

Log in to Identity Manager Admin
  1. Log in to Identity Manager Admin as Administrator.


Manage the option to decide how long the virtual smart card shall be valid
  1. In Identity Manager Admin, go to Home > Scripts.

  2. Select the script VirtualSmartCardScriptOptions.

  3. In the script, go to the yearsOfValidity variable, see the example. By default it is set to 2, which means that the virtual smart card is valid for 2 years

    Example:

    /* Defines the validity of the virtual smart card */ def date = new Date() CredentialsDp_ValidFrom = date var yearsOfValidity = 2 // --> CHANGE HERE // Calculate the validity by adding the 'yearsOfValidity' value to the current date use(TimeCategory) { CredentialsDp_ValidTo = binding.variables["CredentialsDp_ValidFrom"] + yearsOfValidity.year }


  4. Click Save in the upper left corner to save the updated script (or exit without saving if there are no updates).

Technical details

Default value and outcome


Value

Outcome

2 (default)

The virtual smart card is valid for 2 years

Other value

The validity of the virtual smart card is set to this value



The manage options script


Click

here

to see the whole manage options script.


Related information