X509CertSelector.SetKeyUsage(Boolean[]) 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 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.