Język

KeyGenParameterSpec.Builder.SetUserConfirmationRequired(Boolean) Method

Definition

Sets whether this key is authorized to be used only for messages confirmed by the user.

[Android.Runtime.Register("setUserConfirmationRequired", "(Z)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=28)]
public Android.Security.Keystore.KeyGenParameterSpec.Builder SetUserConfirmationRequired(bool required);
[<Android.Runtime.Register("setUserConfirmationRequired", "(Z)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=28)>]
member this.SetUserConfirmationRequired : bool -> Android.Security.Keystore.KeyGenParameterSpec.Builder

Parameters

required
Boolean

Returns

Attributes

Remarks

Sets whether this key is authorized to be used only for messages confirmed by the user. Confirmation is separate from user authentication (see setUserAuthenticationRequired(boolean)). Keys can be created that require confirmation but not user authentication, or user authentication but not confirmation, or both. Confirmation verifies that some user with physical possession of the device has approved a displayed message. User authentication verifies that the correct user is present and has authenticated.

This authorization applies only to secret key and private key operations. Public key operations are not restricted. See ConfirmationPrompt class for more details about user confirmations.

Android reference for android.security.keystore.KeyGenParameterSpec.Builder.setUserConfirmationRequired.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to