Language

AccessControlProfile.Builder.SetReaderCertificate(X509Certificate) Method

Definition

Sets the reader certificate to use when checking access control.

[Android.Runtime.Register("setReaderCertificate", "(Ljava/security/cert/X509Certificate;)Landroid/security/identity/AccessControlProfile$Builder;", "", ApiSince=30)]
public Android.Security.Identity.AccessControlProfile.Builder SetReaderCertificate(Java.Security.Cert.X509Certificate readerCertificate);
[<Android.Runtime.Register("setReaderCertificate", "(Ljava/security/cert/X509Certificate;)Landroid/security/identity/AccessControlProfile$Builder;", "", ApiSince=30)>]
member this.SetReaderCertificate : Java.Security.Cert.X509Certificate -> Android.Security.Identity.AccessControlProfile.Builder

Parameters

readerCertificate
X509Certificate

the certificate to use for the access control check. This value cannot be null.

Returns

The builder. This value cannot be null.

Attributes

Remarks

This method is deprecated. Use java.security.KeyStore with the Android hardware-backed keystore instead.

Sets the reader certificate to use when checking access control.

If set, this is checked against the certificate chain presented by reader. The access check is fulfilled only if one of the certificates in the chain, matches the certificate set by this method.

Android reference for android.security.identity.AccessControlProfile.Builder.setReaderCertificate.

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