ErrorCode | Doclava
public final enum

ErrorCode

extends Enum<ErrorCode>
implements Parcelable
java.lang.Object
   ↳ java.lang.Enum<com.google.android.gms.fido.fido2.api.common.ErrorCode>
     ↳ com.google.android.gms.fido.fido2.api.common.ErrorCode

Class Overview

Error codes defined by the latest CTAP Spec in Github repository.

Summary

Nested Classes
class ErrorCode.UnsupportedErrorCodeException Exception thrown when an unsupported or unrecognized error code is encountered. 
Enum Values
ErrorCode  CTAP2_ERR_CREDENTIAL_EXCLUDED  Valid credential found in the excludeList. 
ErrorCode  CTAP2_ERR_DEVICE_NO_SCREEN_LOCK  Android device does not have a screen lock set up  
ErrorCode  CTAP2_ERR_OPERATION_DENIED  Not authorized for requested operation. 
ErrorCode  CTAP2_ERR_OPTION_NOT_SUPPORTED  Unsupported option. 
ErrorCode  CTAP2_ERR_UNSUPPORTED_ALGORITHM  Authenticator doesn't support requested algorithm  
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
int describeContents()
int getCode()
static ErrorCode toErrorCode(int code)
static ErrorCode valueOf(String name)
static final ErrorCode[] values()
void writeToParcel(Parcel parcel, int flags)
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable
From interface android.os.Parcelable

Enum Values

public static final ErrorCode CTAP2_ERR_CREDENTIAL_EXCLUDED

Valid credential found in the excludeList.

public static final ErrorCode CTAP2_ERR_DEVICE_NO_SCREEN_LOCK

Android device does not have a screen lock set up

public static final ErrorCode CTAP2_ERR_OPERATION_DENIED

Not authorized for requested operation.

public static final ErrorCode CTAP2_ERR_OPTION_NOT_SUPPORTED

Unsupported option.

public static final ErrorCode CTAP2_ERR_UNSUPPORTED_ALGORITHM

Authenticator doesn't support requested algorithm

Public Methods

public int describeContents ()

Returns
int

public int getCode ()

Returns
int

public static ErrorCode toErrorCode (int code)

Parameters
code int
Returns
ErrorCode
Throws
ErrorCode.UnsupportedErrorCodeException

public static ErrorCode valueOf (String name)

Parameters
name String
Returns
ErrorCode

public static final ErrorCode[] values ()

Returns
ErrorCode[]

public void writeToParcel (Parcel parcel, int flags)

Parameters
parcel Parcel
flags int