Skip to main content

Passkey

public class Passkey extends Object

↳ package com.onekosmos.blockid.sdk.BIDAPIs.APIManager.ErrorManager

Utility class to manage Passkey errors.

Constructor​

public Passkey(int code, String message)

Creates an object of Passkey class.

Parameter
codeint: The error code
messageString: The message associated with error code.

Method Summary​

TypeMethodDescription
intgetCode()Returns the error code.
stringgetMessage()Returns error message.

Method Details​

getCode​

public int getCode()

Returns error code.

getMessage​

public String getMessage()

Returns error message.

Error Codes​

The below table lists license error codes and messages.

KeyCodeMessage
USERNAME_EMPTY300002UserName cannot be empty.
DISPLAY_NAME_EMPTY300003DisplayName cannot be empty.
ATTESTATION_OPTIONS_FAILED300004PassKey attestation options failed.
ATTESTATION_RESULT_FAILED300005PassKey attestation result failed.
PASSKEY_REGISTRATION_FAILED300006Missing registration JSON in server response.
CANCELED300007User cancelled the operation.
INVALID300008Unable to create credential.
INVALID_SIGNING300009Unable to sign challenge.
UNSUPPORTED_CREDENTIAL_TYPE300010Unsupported credential type returned by Credential Manager. Add handling for {error from os}
ASSERTION_OPTIONS_FAILED300011PassKey assertion options failed.
ASSERTION_RESULT_FAILED300012PassKey assertion result failed.
UNHANDLED_CREDENTIAL_TYPE300013Unhandled CustomCredential type received. Ensure your Credential Manager integration supports all expected credential types.
ALREADY_REGISTERED_PASS_KEY300014User has already created a passkey.
LINKING_FAILED300015FIDO and DID Linking failed
PASSKEY_REQUEST_MANDATORY300016PasskeyRequest object is mandatory.