Freigeben über


X509CertSelector.ExtendedKeyUsage Property

Definition

Returns the extendedKeyUsage criterion. -or- Sets the extendedKeyUsage criterion.

public virtual System.Collections.Generic.ICollection<string>? ExtendedKeyUsage { [Android.Runtime.Register("getExtendedKeyUsage", "()Ljava/util/Set;", "GetGetExtendedKeyUsageHandler")] get; [Android.Runtime.Register("setExtendedKeyUsage", "(Ljava/util/Set;)V", "GetSetExtendedKeyUsage_Ljava_util_Set_Handler")] set; }
[<get: Android.Runtime.Register("getExtendedKeyUsage", "()Ljava/util/Set;", "GetGetExtendedKeyUsageHandler")>]
[<set: Android.Runtime.Register("setExtendedKeyUsage", "(Ljava/util/Set;)V", "GetSetExtendedKeyUsage_Ljava_util_Set_Handler")>]
member this.ExtendedKeyUsage : System.Collections.Generic.ICollection<string> with get, set

Property Value

an immutable Set of key purpose OIDs in string format (or null)

Attributes

Remarks

Property getter documentation:

Returns the extendedKeyUsage criterion. The X509Certificate must allow the specified key purposes in its extended key usage extension. If the keyPurposeSet returned is empty or null, no extendedKeyUsage check will be done. Note that an X509Certificate that has no extendedKeyUsage extension implicitly allows all key purposes.

Java documentation for java.security.cert.X509CertSelector.getExtendedKeyUsage().

Property setter documentation:

Sets the extendedKeyUsage criterion. The X509Certificate must allow the specified key purposes in its extended key usage extension. If keyPurposeSet is empty or null, no extendedKeyUsage check will be done. Note that an X509Certificate that has no extendedKeyUsage extension implicitly allows all key purposes.

Note that the Set is cloned to protect against subsequent modifications.

Java documentation for java.security.cert.X509CertSelector.setExtendedKeyUsage(java.util.Set<java.lang.String>).

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