Lingua

KeyGenParameterSpec.Builder.SetCertificateSerialNumber(BigInteger) Method

Definition

Sets the serial number used for the certificate of the generated key pair.

[Android.Runtime.Register("setCertificateSerialNumber", "(Ljava/math/BigInteger;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)]
public Android.Security.Keystore.KeyGenParameterSpec.Builder SetCertificateSerialNumber(Java.Math.BigInteger serialNumber);
[<Android.Runtime.Register("setCertificateSerialNumber", "(Ljava/math/BigInteger;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)>]
member this.SetCertificateSerialNumber : Java.Math.BigInteger -> Android.Security.Keystore.KeyGenParameterSpec.Builder

Parameters

serialNumber
BigInteger

Returns

Attributes

Remarks

Sets the serial number used for the certificate of the generated key pair. To ensure compatibility with devices and certificate parsers, the value should be 20 bytes or shorter (see RFC 5280 section 4.1.2.2).

By default, the serial number is 1.

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

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