Share via


KeyGenParameterSpec.MaxUsageCount Property

Definition

Returns the maximum number of times the limited use key is allowed to be used or KeyProperties#UNRESTRICTED_USAGE_COUNT if there’s no restriction on the number of times the key can be used.

public int MaxUsageCount { [Android.Runtime.Register("getMaxUsageCount", "()I", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getMaxUsageCount", "()I", "", ApiSince=31)>]
member this.MaxUsageCount : int

Property Value

Attributes

Remarks

Returns the maximum number of times the limited use key is allowed to be used or KeyProperties#UNRESTRICTED_USAGE_COUNT if there’s no restriction on the number of times the key can be used.

Java documentation for android.security.keystore.KeyGenParameterSpec.getMaxUsageCount().

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