Condividi tramite


X500Principal.GetEncoded Method

Definition

Returns the distinguished name in ASN.

[Android.Runtime.Register("getEncoded", "()[B", "")]
public byte[]? GetEncoded ();
[<Android.Runtime.Register("getEncoded", "()[B", "")>]
member this.GetEncoded : unit -> byte[]

Returns

Byte[]

a byte array containing the distinguished name in ASN.1 DER encoded form

Attributes

Remarks

Returns the distinguished name in ASN.1 DER encoded form. The ASN.1 notation for this structure is supplied in the documentation for #X500Principal(byte[] name) X500Principal(byte[] name).

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

Java documentation for javax.security.auth.x500.X500Principal.getEncoded().

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