public interface RegistryManagerProvider


Provider interface to be implemented by a system registry manager service provider that will fulfill RegistryManager requests. The implementation must have a constructor that takes in a context.

Summary

Public methods

abstract boolean

Returns true if the provider is available on this device, or otherwise false.

abstract void

Invoked on a request to clear creation options.

abstract void

Invoked on a request to clear credential registries.

abstract void

Invoked on a request to register creation options.

abstract void

Invoked on a request to register a credential.

Public methods

isAvailable

Added in 1.0.0-alpha04
abstract boolean isAvailable()

Returns true if the provider is available on this device, or otherwise false.

onClearCreationOptions

Added in 1.0.0-alpha04
abstract void onClearCreationOptions(
    @NonNull ClearCreationOptionsRequest request,
    @NonNull Executor executor,
    @NonNull CredentialManagerCallback<@NonNull ClearCreationOptionsResponse, @NonNull ClearCreationOptionsException> callback
)

Invoked on a request to clear creation options.

Parameters
@NonNull ClearCreationOptionsRequest request

the request to specify clearing configurations

@NonNull Executor executor

the callback will take place on this executor

@NonNull CredentialManagerCallback<@NonNull ClearCreationOptionsResponse, @NonNull ClearCreationOptionsException> callback

the callback invoked when the request succeeds or fails

onClearCredentialRegistry

Added in 1.0.0-alpha04
abstract void onClearCredentialRegistry(
    @NonNull ClearCredentialRegistryRequest request,
    @NonNull Executor executor,
    @NonNull CredentialManagerCallback<@NonNull ClearCredentialRegistryResponse, @NonNull ClearCredentialRegistryException> callback
)

Invoked on a request to clear credential registries.

Parameters
@NonNull ClearCredentialRegistryRequest request

the request to specify clearing configurations

@NonNull Executor executor

the callback will take place on this executor

@NonNull CredentialManagerCallback<@NonNull ClearCredentialRegistryResponse, @NonNull ClearCredentialRegistryException> callback

the callback invoked when the request succeeds or fails

onRegisterCreationOptions

Added in 1.0.0-alpha04
abstract void onRegisterCreationOptions(
    @NonNull RegisterCreationOptionsRequest request,
    CancellationSignal cancellationSignal,
    @NonNull Executor executor,
    @NonNull CredentialManagerCallback<@NonNull RegisterCreationOptionsResponse, @NonNull RegisterCreationOptionsException> callback
)

Invoked on a request to register creation options.

Parameters
@NonNull RegisterCreationOptionsRequest request

the request containing the creation options to register

CancellationSignal cancellationSignal

an optional signal that allows for cancelling this call

@NonNull Executor executor

the callback will take place on this executor

@NonNull CredentialManagerCallback<@NonNull RegisterCreationOptionsResponse, @NonNull RegisterCreationOptionsException> callback

the callback invoked when the request succeeds or fails

onRegisterCredentials

Added in 1.0.0-alpha04
abstract void onRegisterCredentials(
    @NonNull RegisterCredentialsRequest request,
    CancellationSignal cancellationSignal,
    @NonNull Executor executor,
    @NonNull CredentialManagerCallback<@NonNull RegisterCredentialsResponse, @NonNull RegisterCredentialsException> callback
)

Invoked on a request to register a credential.

Parameters
@NonNull RegisterCredentialsRequest request

the request containing the credential data to register

CancellationSignal cancellationSignal

an optional signal that allows for cancelling this call

@NonNull Executor executor

the callback will take place on this executor

@NonNull CredentialManagerCallback<@NonNull RegisterCredentialsResponse, @NonNull RegisterCredentialsException> callback

the callback invoked when the request succeeds or fails