OAuthCredential

public abstract class OAuthCredential extends AuthCredential


Holds credentials generated by a sign-in with a credential to an IDP that uses OAuth

Summary

Public constructors

Public methods

abstract @Nullable String

Returns the OAuth access token associated with this credential.

abstract @Nullable String

Returns the OAuth ID token associated with this credential.

abstract @Nullable String

Returns the OAuth secret associated with this credential.

Inherited Constants

From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

From com.google.firebase.auth.AuthCredential
abstract @NonNull String

Returns the unique string identifier for the provider type with which the credential is associated.

abstract @NonNull String

Returns the unique string identifier for the sign in method with which the credential is associated.

From android.os.Parcelable
abstract int
int
abstract void
writeToParcel(Parcel p, int p1)

Public constructors

OAuthCredential

public OAuthCredential()

Public methods

getAccessToken

public abstract @Nullable String getAccessToken()

Returns the OAuth access token associated with this credential.

getIdToken

public abstract @Nullable String getIdToken()

Returns the OAuth ID token associated with this credential.

getSecret

public abstract @Nullable String getSecret()

Returns the OAuth secret associated with this credential. This will be null for OAuth 2.0 providers.