Compartilhar via


X509Certificate.IssuerAlternativeNames Property

Definition

Gets an immutable collection of issuer alternative names from the IssuerAltName extension, (OID = 2.

public virtual System.Collections.Generic.ICollection<System.Collections.Generic.IList<object>>? IssuerAlternativeNames { [Android.Runtime.Register("getIssuerAlternativeNames", "()Ljava/util/Collection;", "GetGetIssuerAlternativeNamesHandler")] get; }
[<get: Android.Runtime.Register("getIssuerAlternativeNames", "()Ljava/util/Collection;", "GetGetIssuerAlternativeNamesHandler")>]
member this.IssuerAlternativeNames : System.Collections.Generic.ICollection<System.Collections.Generic.IList<obj>>

Property Value

an immutable Collection of issuer alternative names (or null)

Attributes

Exceptions

if decoding of the extension fails.

Remarks

Gets an immutable collection of issuer alternative names from the IssuerAltName extension, (OID = 2.5.29.18).

The ASN.1 definition of the IssuerAltName extension is:

IssuerAltName ::= GeneralNames

The ASN.1 definition of GeneralNames is defined in #getSubjectAlternativeNames getSubjectAlternativeNames.

If this certificate does not contain an IssuerAltName extension, null is returned. Otherwise, a Collection is returned with an entry representing each GeneralName included in the extension. Each entry is a List whose first entry is an Integer (the name type, 0-8) and whose second entry is a String or a byte array (the name, in string or ASN.1 DER encoded form, respectively). For more details about the formats used for each name type, see the getSubjectAlternativeNames method.

Note that the Collection returned may contain more than one name of the same type. Also, note that the returned Collection is immutable and any entries containing byte arrays are cloned to protect against subsequent modifications.

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.getIssuerAlternativeNames().

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