Share via


KeyInfo.RemainingUsageCount Property

Definition

Returns the remaining number of times the 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 virtual int RemainingUsageCount { [Android.Runtime.Register("getRemainingUsageCount", "()I", "GetGetRemainingUsageCountHandler", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getRemainingUsageCount", "()I", "GetGetRemainingUsageCountHandler", ApiSince=31)>]
member this.RemainingUsageCount : int

Property Value

Attributes

Remarks

Returns the remaining number of times the 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. Note that this gives a best effort count and need not be accurate (as there might be usages happening in parallel and the count maintained here need not be in sync with the usage).

Java documentation for android.security.keystore.KeyInfo.getRemainingUsageCount().

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