open class AuthenticatorDescription : Parcelable

A Parcelable value type that contains information about an account authenticator.

Summary

Inherited constants

From class Parcelable

Int CONTENTS_FILE_DESCRIPTOR

Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.

Int PARCELABLE_WRITE_RETURN_VALUE

Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.

Public constructors

AuthenticatorDescription(type: String!, packageName: String!, labelId: Int, iconId: Int, smallIconId: Int, prefId: Int)

AuthenticatorDescription(type: String!, packageName: String!, labelId: Int, iconId: Int, smallIconId: Int, prefId: Int, customTokens: Boolean)

A constructor for a full AuthenticatorDescription

Public methods
open Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

open Boolean

equals(other: Any?)

Compares the type only, suitable for key comparisons.

open Int

hashCode()

Returns the hashcode of the type only.

open static AuthenticatorDescription!

newKey(type: String!)

A factory method for creating an AuthenticatorDescription that can be used as a key to identify the authenticator by its type.

open String

toString()

Returns a string representation of the object.

open Unit

writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<AuthenticatorDescription!>

Used to create the object from a parcel.

Int

A resource id for a hierarchy of PreferenceScreen to be added to the settings page for the account.

Boolean

Authenticator handles its own token caching and permission screen

Int

A resource id of a icon for the authenticator

Int

A resource id of a label for the authenticator that is suitable for displaying

String!

The package name that can be used to lookup the resources from above.

Int

A resource id of a smaller icon for the authenticator

String!

The string that uniquely identifies an authenticator

Public constructors

AuthenticatorDescription

AuthenticatorDescription(
    type: String!,
    packageName: String!,
    labelId: Int,
    iconId: Int,
    smallIconId: Int,
    prefId: Int)

AuthenticatorDescription

AuthenticatorDescription(
    type: String!,
    packageName: String!,
    labelId: Int,
    iconId: Int,
    smallIconId: Int,
    prefId: Int,
    customTokens: Boolean)

A constructor for a full AuthenticatorDescription

Public methods

describeContents

open fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

equals

open fun equals(other: Any?): Boolean

Compares the type only, suitable for key comparisons.

Parameters
obj the reference object with which to compare.
o This value may be null.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

hashCode

open fun hashCode(): Int

Returns the hashcode of the type only.

Return
Int a hash code value for this object.

newKey

open static fun newKey(type: String!): AuthenticatorDescription!

A factory method for creating an AuthenticatorDescription that can be used as a key to identify the authenticator by its type.

toString

open fun toString(): String

Returns a string representation of the object.

Return
String a string representation of the object.

writeToParcel

open fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: The Parcel in which the object should be written.
This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:

Properties

accountPreferencesId

val accountPreferencesId: Int

A resource id for a hierarchy of PreferenceScreen to be added to the settings page for the account. See AbstractAccountAuthenticator for an example.

customTokens

val customTokens: Boolean

Authenticator handles its own token caching and permission screen

iconId

val iconId: Int

A resource id of a icon for the authenticator

labelId

val labelId: Int

A resource id of a label for the authenticator that is suitable for displaying

packageName

val packageName: String!

The package name that can be used to lookup the resources from above.

smallIconId

val smallIconId: Int

A resource id of a smaller icon for the authenticator

type

val type: String!

The string that uniquely identifies an authenticator

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-26 UTC.