Credential

A credential stored in a virtual authenticator.

Methods

createNonResidentCredential(id, rpId, privateKey, signCount)

Creates a non-resident (i.e. stateless) credential.

Parameters:
NameTypeDescription
id

Unique base64 encoded string.

rpId

Relying party identifier.

privateKey

Base64 encoded PKCS

signCount

initial value for a signature counter.

Deprecated
  • This method has been made static. Call it with class name. Example, Credential.createNonResidentCredential()
Returns:

A non-resident credential

createResidentCredential(id, rpId, userHandle, privateKey, signCount)

Creates a resident (i.e. stateless) credential.

Parameters:
NameTypeDescription
id

Unique base64 encoded string.

rpId

Relying party identifier.

userHandle

userHandle associated to the credential. Must be Base64 encoded string.

privateKey

Base64 encoded PKCS

signCount

initial value for a signature counter.

Deprecated
  • This method has been made static. Call it with class name. Example, Credential.createResidentCredential()
Returns:

A resident credential

fromDict()

Creates a credential from a map.