Language

KeyGenParameterSpec.Builder.SetKeyValidityForConsumptionEnd(Date) Method

Definition

Sets the time instant after which the key is no longer valid for decryption and verification.

[Android.Runtime.Register("setKeyValidityForConsumptionEnd", "(Ljava/util/Date;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)]
public Android.Security.Keystore.KeyGenParameterSpec.Builder SetKeyValidityForConsumptionEnd(Java.Util.Date? endDate);
[<Android.Runtime.Register("setKeyValidityForConsumptionEnd", "(Ljava/util/Date;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)>]
member this.SetKeyValidityForConsumptionEnd : Java.Util.Date -> Android.Security.Keystore.KeyGenParameterSpec.Builder

Parameters

endDate
Date

The end date for decryption and verification, or null for no end-date restriction.

Returns

This builder instance.

Attributes

Remarks

Sets the time instant after which the key is no longer valid for decryption and verification.

By default, the key is valid at any instant.

Android reference for android.security.keystore.KeyGenParameterSpec.Builder.setKeyValidityForConsumptionEnd.

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