Share via


KeyProtection.Purposes Property

Definition

Gets the set of purposes (e.

public Android.Security.Keystore.KeyStorePurpose Purposes { [Android.Runtime.Register("getPurposes", "()I", "", ApiSince=23)] get; }
[<get: Android.Runtime.Register("getPurposes", "()I", "", ApiSince=23)>]
member this.Purposes : Android.Security.Keystore.KeyStorePurpose

Property Value

Attributes

Remarks

Gets the 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.

See KeyProperties.PURPOSE flags.

Java documentation for android.security.keystore.KeyProtection.getPurposes().

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