Stay organized with collections Save and categorize content based on your preferences.

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.

Throws
kotlin.IllegalArgumentException kotlin.IllegalArgumentException

If type is empty

kotlin.NullPointerException kotlin.NullPointerException

If type or data are null

Summary

Public constructors

Public methods

final @NonNull Bundle

the response data in the Bundle format for custom use cases

final @NonNull String

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

Public constructors

CreateCustomCredentialResponse

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

Public methods

getData

public final @NonNull Bundle getData()

the response data in the Bundle format for custom use cases

getType

public final @NonNull String getType()

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