PasswordCredential


public final class PasswordCredential extends Credential


Represents the user's password credential granted by the user for app sign-in.

Summary

Constants

static final @NonNull String

The type value for password related operations.

Public constructors

Constructs a PasswordCredential.

Public methods

final @NonNull String

the user id associated with the password

final @NonNull String

the password

Inherited methods

From androidx.credentials.Credential
final @NonNull Bundle

the credential data in the Bundle format

final @NonNull String

the credential type determined by the credential-type-specific subclass (e.g. PasswordCredential.TYPE_PASSWORD_CREDENTIAL for PasswordCredential or PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL for PublicKeyCredential)

Constants

TYPE_PASSWORD_CREDENTIAL

public static final @NonNull String TYPE_PASSWORD_CREDENTIAL

The type value for password related operations.

Public constructors

PasswordCredential

Added in 1.2.0
public PasswordCredential(@NonNull String id, @NonNull String password)

Constructs a PasswordCredential.

Parameters
@NonNull String id

the user id associated with the password

@NonNull String password

the password

Public methods

getId

Added in 1.2.0
public final @NonNull String getId()

the user id associated with the password

getPassword

Added in 1.2.0
public final @NonNull String getPassword()

the password