Freigeben über


X509CertSelector.GetNameConstraints Method

Definition

Returns the name constraints criterion.

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

Returns

Byte[]

a byte array containing the ASN.1 DER encoding of a NameConstraints extension used for checking name constraints. null if no name constraints check will be performed.

Attributes

Remarks

Returns the name constraints criterion. The X509Certificate must have subject and subject alternative names that meet the specified name constraints.

The name constraints are returned as a byte array. This byte array contains the DER encoded form of the name constraints, as they would appear in the NameConstraints structure defined in RFC 5280 and X.509. The ASN.1 notation for this structure is supplied in the documentation for #setNameConstraints(byte [] bytes) setNameConstraints(byte [] bytes).

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

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

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

See also