X509CertSelector.SubjectAsString Property

Definition

<strong>Denigrated</strong>, use #getSubject() or #getSubjectAsBytes() instead.

public virtual string? SubjectAsString { [Android.Runtime.Register("getSubjectAsString", "()Ljava/lang/String;", "GetGetSubjectAsStringHandler")] get; }
[<get: Android.Runtime.Register("getSubjectAsString", "()Ljava/lang/String;", "GetGetSubjectAsStringHandler")>]
member this.SubjectAsString : string

Property Value

the required subject distinguished name in RFC 2253 format (or null)

Attributes

Remarks

<strong>Denigrated</strong>, use #getSubject() or #getSubjectAsBytes() instead. This method should not be relied on as it can fail to match some certificates because of a loss of encoding information in the RFC 2253 String form of some distinguished names.

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

If the value returned is not null, it is a distinguished name, in RFC 2253 format.

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

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