Class WebAuthnResponseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WebAuthnResponseException
    extends java.lang.Exception
    An Exception representation of AuthenticatorErrorResponse
    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 specified AuthenticatorErrorResponse
      WebAuthnResponseException​(com.google.android.gms.fido.fido2.api.common.ErrorCode errorCode, java.lang.String message)
      Constructs a new exception with the specified AuthenticatorErrorResponse
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.android.gms.fido.fido2.api.common.ErrorCode getErrorCode()  
      int getErrorCodeAsInt()  
      java.lang.String toServerError()
      Server error string representation of this error.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WebAuthnResponseException

        public WebAuthnResponseException​(com.google.android.gms.fido.fido2.api.common.AuthenticatorErrorResponse authenticatorErrorResponse)
        Constructs a new exception with the specified AuthenticatorErrorResponse
        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 specified AuthenticatorErrorResponse
        Parameters:
        errorCode - the ErrorCode
        message - 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()