共用方式為


X509CertSelector.SetKeyUsage(Boolean[]) Method

Definition

Sets the keyUsage criterion.

[Android.Runtime.Register("setKeyUsage", "([Z)V", "GetSetKeyUsage_arrayZHandler")]
public virtual void SetKeyUsage (bool[]? keyUsage);
[<Android.Runtime.Register("setKeyUsage", "([Z)V", "GetSetKeyUsage_arrayZHandler")>]
abstract member SetKeyUsage : bool[] -> unit
override this.SetKeyUsage : bool[] -> unit

Parameters

keyUsage
Boolean[]

a boolean array in the same format as the boolean array returned by X509Certificate#getKeyUsage() X509Certificate.getKeyUsage(). Or null.

Attributes

Remarks

Sets the keyUsage criterion. The X509Certificate must allow the specified keyUsage values. If null, no keyUsage check will be done. Note that an X509Certificate that has no keyUsage extension implicitly allows all keyUsage values.

Note that the boolean array supplied here is cloned to protect against subsequent modifications.

Java documentation for java.security.cert.X509CertSelector.setKeyUsage(boolean[]).

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