AuthenticatorErrorResponse

  • AuthenticatorErrorResponse represents the response when an error occurs during an authentication process.

  • It inherits constants from the Parcelable interface and methods from AuthenticatorResponse and java.lang.Object classes.

  • Key methods allow for getting the error code, error message, client data, and for serializing/deserializing the response.

  • The class includes methods for object comparison (equals, hashCode), string representation (toString), and Parcelable implementation (writeToParcel).

public class AuthenticatorErrorResponse extends AuthenticatorResponse

The response after an error occurred.

Inherited Constant Summary

Public Method Summary

static AuthenticatorErrorResponse
deserializeFromBytes(byte[] serializedBytes)
De-serializes the AuthenticatorErrorResponse from bytes, reversing serializeToBytes().
boolean
byte[]
ErrorCode
int
String
int
byte[]
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Public Methods

public static AuthenticatorErrorResponse deserializeFromBytes (byte[] serializedBytes)

De-serializes the AuthenticatorErrorResponse from bytes, reversing serializeToBytes().

Returns

public boolean equals (Object obj)

public byte[] getClientDataJSON ()

public ErrorCode getErrorCode ()

public int getErrorCodeAsInt ()

public String getErrorMessage ()

public int hashCode ()

public byte[] serializeToBytes ()

Serializes the AuthenticatorErrorResponse to bytes. Use deserializeFromBytes(byte[]) to deserialize.

Returns
  • the serialized byte array.

public String toString ()

public void writeToParcel (Parcel dest, int flags)