X509Certificate.ExtendedKeyUsage Property
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.
Gets an unmodifiable list of Strings representing the OBJECT
IDENTIFIERs of the ExtKeyUsageSyntax
field of the
extended key usage extension, (OID = 2.
public virtual System.Collections.Generic.IList<string>? ExtendedKeyUsage { [Android.Runtime.Register("getExtendedKeyUsage", "()Ljava/util/List;", "GetGetExtendedKeyUsageHandler")] get; }
[<get: Android.Runtime.Register("getExtendedKeyUsage", "()Ljava/util/List;", "GetGetExtendedKeyUsageHandler")>]
member this.ExtendedKeyUsage : System.Collections.Generic.IList<string>
Property Value
the ExtendedKeyUsage extension of this certificate, as an unmodifiable list of object identifiers represented as Strings. Returns null if this certificate does not contain an ExtendedKeyUsage extension.
- Attributes
Exceptions
if the extension decoding fails.
Remarks
Gets an unmodifiable list of Strings representing the OBJECT IDENTIFIERs of the ExtKeyUsageSyntax
field of the extended key usage extension, (OID = 2.5.29.37). It indicates one or more purposes for which the certified public key may be used, in addition to or in place of the basic purposes indicated in the key usage extension field. The ASN.1 definition for this is:
ExtKeyUsageSyntax ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
KeyPurposeId ::= OBJECT IDENTIFIER
Key purposes may be defined by any organization with a need. Object identifiers used to identify key purposes shall be assigned in accordance with IANA or ITU-T Rec. X.660 | ISO/IEC/ITU 9834-1.
This method was added to version 1.4 of the Java 2 Platform Standard Edition. In order to maintain backwards compatibility with existing service providers, this method is not abstract
and it provides a default implementation. Subclasses should override this method with a correct implementation.
Added in 1.4.
Java documentation for java.security.cert.X509Certificate.getExtendedKeyUsage()
.
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.