Class WebAuthnResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.forgerock.android.auth.exception.WebAuthnResponseException
-
- All Implemented Interfaces:
java.io.Serializable
public class WebAuthnResponseException extends java.lang.ExceptionAn Exception representation ofAuthenticatorErrorResponse- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebAuthnResponseException(com.google.android.gms.fido.fido2.api.common.AuthenticatorErrorResponse authenticatorErrorResponse)Constructs a new exception with the specifiedAuthenticatorErrorResponseWebAuthnResponseException(com.google.android.gms.fido.fido2.api.common.ErrorCode errorCode, java.lang.String message)Constructs a new exception with the specifiedAuthenticatorErrorResponse
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.android.gms.fido.fido2.api.common.ErrorCodegetErrorCode()intgetErrorCodeAsInt()java.lang.StringtoServerError()Server error string representation of this error.
-
-
-
Constructor Detail
-
WebAuthnResponseException
public WebAuthnResponseException(com.google.android.gms.fido.fido2.api.common.AuthenticatorErrorResponse authenticatorErrorResponse)
Constructs a new exception with the specifiedAuthenticatorErrorResponse- Parameters:
authenticatorErrorResponse- the AuthenticatorErrorResponse
-
WebAuthnResponseException
public WebAuthnResponseException(com.google.android.gms.fido.fido2.api.common.ErrorCode errorCode, java.lang.String message)Constructs a new exception with the specifiedAuthenticatorErrorResponse- Parameters:
errorCode- the ErrorCodemessage- the detail message
-
-
Method Detail
-
toServerError
public java.lang.String toServerError()
Server error string representation of this error. Result to the Client Error outcome for WebAuthn Registration Node or WebAuthn Authentication Node- Returns:
- Server error string representation of this error.
-
getErrorCode
public com.google.android.gms.fido.fido2.api.common.ErrorCode getErrorCode()
-
getErrorCodeAsInt
public int getErrorCodeAsInt()
-
-