Language

KeyGenParameterSpec.Builder.SetKeyValidityEnd(Date) Method

Definition

Sets the time instant after which the key is no longer valid.

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

Parameters

endDate
Date

The end of the key's validity period, 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.

By default, the key is valid at any instant.

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

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