Language

KeyPairGeneratorSpec.Builder.SetEncryptionRequired Method

Definition

Caution

deprecated

Sets the legacy screen-lock encryption requirement on Android 11 (API level 30) and earlier.

[Android.Runtime.Register("setEncryptionRequired", "()Landroid/security/KeyPairGeneratorSpec$Builder;", "")]
[System.Obsolete("deprecated")]
public Android.Security.KeyPairGeneratorSpec.Builder SetEncryptionRequired();
[<Android.Runtime.Register("setEncryptionRequired", "()Landroid/security/KeyPairGeneratorSpec$Builder;", "")>]
[<System.Obsolete("deprecated")>]
member this.SetEncryptionRequired : unit -> Android.Security.KeyPairGeneratorSpec.Builder

Returns

This builder. On Android 12 (API level 31) through Android 17 (API level 37), this legacy setting is ignored.

Attributes

Remarks

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