Freigeben über


KeyProtection.Builder(KeyStorePurpose) Constructor

Definition

Creates a new instance of the Builder.

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=23)]
public Builder (Android.Security.Keystore.KeyStorePurpose purposes);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=23)>]
new Android.Security.Keystore.KeyProtection.Builder : Android.Security.Keystore.KeyStorePurpose -> Android.Security.Keystore.KeyProtection.Builder

Parameters

purposes
KeyStorePurpose

set of purposes (e.g., encrypt, decrypt, sign) for which the key can be used. Attempts to use the key for any other purpose will be rejected.

               &lt;p&gt;See <code data-dev-comment-type="c">KeyProperties</code>.<code data-dev-comment-type="c">PURPOSE</code> flags.
Attributes

Remarks

Creates a new instance of the Builder.

Java documentation for android.security.keystore.KeyProtection.Builder.KeyProtection$Builder(int).

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