AccessControlProfile.Builder.SetUserAuthenticationRequired(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.
Set whether user authentication is required.
[Android.Runtime.Register("setUserAuthenticationRequired", "(Z)Landroid/security/identity/AccessControlProfile$Builder;", "", ApiSince=30)]
public Android.Security.Identity.AccessControlProfile.Builder SetUserAuthenticationRequired(bool userAuthenticationRequired);
[<Android.Runtime.Register("setUserAuthenticationRequired", "(Z)Landroid/security/identity/AccessControlProfile$Builder;", "", ApiSince=30)>]
member this.SetUserAuthenticationRequired : bool -> Android.Security.Identity.AccessControlProfile.Builder
Parameters
- userAuthenticationRequired
- Boolean
Set to true if user authentication is required, false otherwise.
Returns
The builder. This value cannot be null.
- Attributes
Remarks
This method is deprecated. Use java.security.KeyStore with the Android hardware-backed keystore instead.
Set whether user authentication is required.
This should be used sparingly since disabling user authentication on just a single data element can easily create a Relay Attack if the device on which the credential is stored is compromised.
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.