Note: The call to retrieveCredential with credentialId returns an ArrayList that contains the credential with given credentialId. In case the credentialId is passed as null to the retrieveCredential method, then an ArrayList of all credential stored in the vault will be returned.
This sample code performs the following functions:
Retrieves the serialized, encrypted credential object that was saved previously.
Calls getSecurityCode on the first element in the ArrayList returned from the retrieveCredential method. This call obtains the next sequential security code from the credential.
Note: If you are not using the Vault interface provided by Symantec, you must reconstruct the Credential object from the JSON stored in the vault (non-Symantec) using the Credential’s constructor and then call the getSecurityCode method on the Credential object.
Subscribing will provide email updates when this Article is updated. Login is required.