Share via


X509CertSelector.GetIssuerAsBytes Method

Definition

Returns the issuer criterion as a byte array.

[Android.Runtime.Register("getIssuerAsBytes", "()[B", "GetGetIssuerAsBytesHandler")]
public virtual byte[]? GetIssuerAsBytes ();
[<Android.Runtime.Register("getIssuerAsBytes", "()[B", "GetGetIssuerAsBytesHandler")>]
abstract member GetIssuerAsBytes : unit -> byte[]
override this.GetIssuerAsBytes : unit -> byte[]

Returns

Byte[]

a byte array containing the required issuer distinguished name in ASN.1 DER format (or null)

Attributes

Exceptions

if encoding the issuer fails.

Remarks

Returns the issuer criterion as a byte array. This distinguished name must match the issuer distinguished name in the X509Certificate. If null, the issuer criterion is disabled and any issuer distinguished name will do.

If the value returned is not null, it is a byte array containing a single DER encoded distinguished name, as defined in X.501. The ASN.1 notation for this structure is supplied in the documentation for #setIssuer(byte [] issuerDN) setIssuer(byte [] issuerDN).

Note that the byte array returned is cloned to protect against subsequent modifications.

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

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