KeyGenParameterSpec.Builder.SetCertificateSubject(X500Principal) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the subject used for the certificate of the generated key pair.
[Android.Runtime.Register("setCertificateSubject", "(Ljavax/security/auth/x500/X500Principal;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)]
public Android.Security.Keystore.KeyGenParameterSpec.Builder SetCertificateSubject(Javax.Security.Auth.X500.X500Principal subject);
[<Android.Runtime.Register("setCertificateSubject", "(Ljavax/security/auth/x500/X500Principal;)Landroid/security/keystore/KeyGenParameterSpec$Builder;", "", ApiSince=23)>]
member this.SetCertificateSubject : Javax.Security.Auth.X500.X500Principal -> Android.Security.Keystore.KeyGenParameterSpec.Builder
Parameters
- subject
- X500Principal
Returns
- Attributes
Remarks
Sets the subject used for the certificate of the generated key pair.
By default, the subject is CN=fake.
Android reference for android.security.keystore.KeyGenParameterSpec.Builder.setCertificateSubject.
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.