KeyStoreParameter.Builder.SetEncryptionRequired(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Indicates that this key must be encrypted at rest on storage.
[Android.Runtime.Register("setEncryptionRequired", "(Z)Landroid/security/KeyStoreParameter$Builder;", "")]
[System.Obsolete("deprecated")]
public Android.Security.KeyStoreParameter.Builder SetEncryptionRequired(bool required);
[<Android.Runtime.Register("setEncryptionRequired", "(Z)Landroid/security/KeyStoreParameter$Builder;", "")>]
[<System.Obsolete("deprecated")>]
member this.SetEncryptionRequired : bool -> Android.Security.KeyStoreParameter.Builder
Parameters
- required
- Boolean
Whether to request the legacy screen-lock-based encryption requirement. This argument is ignored from Android 12 (API level 31).
Returns
This builder.
- 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.