{% include "/android/_dackka-meta-tags.html" %}

Credential

{% setvar page_path %}com/google/android/gms/identitycredentials/Credential.html{% endsetvar %} {% setvar doc_root_path %}/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_java_switcher2.md" %}

public final class Credential implements Parcelable


Represents a user credential that can be used to authenticate to your app.

Summary

Public fields

static final @NonNull Parcelable.Creator<@NonNull Credential>

Public constructors

constructs an instance of Credential

Public methods

final int
final @NonNull Bundle

the data associated with the credential

final @NonNull String

the type of the credential

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

CREATOR

public static final @NonNull Parcelable.Creator<@NonNull CredentialCREATOR

Public constructors

Credential

public Credential(@NonNull String type, @NonNull Bundle data)

constructs an instance of Credential

Parameters
@NonNull String type

the type of the credential

@NonNull Bundle data

the data associated with the credential

Public methods

describeContents

public final int describeContents()

getData

public final @NonNull Bundle getData()

the data associated with the credential

getType

public final @NonNull String getType()

the type of the credential

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)