次の方法で共有


TrustAnchor.GetNameConstraints Method

Definition

Returns the name constraints parameter.

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

Returns

Byte[]

a byte array containing the ASN.1 DER encoding of a NameConstraints extension used for checking name constraints, or null if not set.

Attributes

Remarks

Returns the name constraints parameter. The specified name constraints are associated with this trust anchor and are intended to be used as additional constraints when validating an X.509 certification path.

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 #TrustAnchor(X509Certificate, byte[]) TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints) .

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

Java documentation for java.security.cert.TrustAnchor.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