CreateCustomCredentialResponse


public class CreateCustomCredentialResponse extends CreateCredentialResponse


Base custom create response class for the credential creation operation made with the CreateCustomCredentialRequest.

If you get a CreateCustomCredentialResponse instead of a type-safe response class such as CreatePasswordResponse, CreatePublicKeyCredentialResponse, etc., then you should check if you have any other library at interest that supports this custom type of credential response, and if so use its parsing utilities to resolve to a type-safe class within that library.

Note: The Bundle keys for data should not be in the form of androidx.credentials.*` as they are reserved for internal use by this androidx library.

Summary

Public constructors

Inherited methods

From androidx.credentials.CreateCredentialResponse
final @NonNull Bundle

the response data in the Bundle format

final @NonNull String

the credential type determined by the credential-type-specific subclass (e.g. the type for CreatePasswordResponse is PasswordCredential.TYPE_PASSWORD_CREDENTIAL and for CreatePublicKeyCredentialResponse is PublicKeyCredential.TYPE_PUBLIC_KEY_CREDENTIAL)

Public constructors

CreateCustomCredentialResponse

Added in 1.2.0
public CreateCustomCredentialResponse(@NonNull String type, @NonNull Bundle data)
Parameters
@NonNull String type

the credential type determined by the credential-type-specific subclass for custom use cases

@NonNull Bundle data

the response data in the Bundle format for custom use cases (note: bundle keys in the form of androidx.credentials.* and android.credentials.* are reserved for internal library usage)