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 | |
|---|---|
| code | int: The error code |
| message | String: The message associated with error code. |
Method Summary
| Type | Method | Description |
|---|---|---|
| int | getCode() | Returns the error code. |
| string | getMessage() | 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.
| Key | Code | Message |
|---|---|---|
| USERNAME_EMPTY | 300002 | UserName cannot be empty. |
| DISPLAY_NAME_EMPTY | 300003 | DisplayName cannot be empty. |
| ATTESTATION_OPTIONS_FAILED | 300004 | PassKey attestation options failed. |
| ATTESTATION_RESULT_FAILED | 300005 | PassKey attestation result failed. |
| PASSKEY_REGISTRATION_FAILED | 300006 | Missing registration JSON in server response. |
| CANCELED | 300007 | User cancelled the operation. |
| INVALID | 300008 | Unable to create credential. |
| INVALID_SIGNING | 300009 | Unable to sign challenge. |
| UNSUPPORTED_CREDENTIAL_TYPE | 300010 | Unsupported credential type returned by Credential Manager. Add handling for {error from os} |
| ASSERTION_OPTIONS_FAILED | 300011 | PassKey assertion options failed. |
| ASSERTION_RESULT_FAILED | 300012 | PassKey assertion result failed. |
| UNHANDLED_CREDENTIAL_TYPE | 300013 | Unhandled CustomCredential type received. Ensure your Credential Manager integration supports all expected credential types. |
| ALREADY_REGISTERED_PASS_KEY | 300014 | User has already created a passkey. |
| LINKING_FAILED | 300015 | FIDO and DID Linking failed |
| PASSKEY_REQUEST_MANDATORY | 300016 | PasskeyRequest object is mandatory. |