X509CertSelector.BasicConstraints Property

Definition

Returns the basic constraints constraint. -or- Sets the basic constraints constraint.

public virtual int BasicConstraints { [Android.Runtime.Register("getBasicConstraints", "()I", "GetGetBasicConstraintsHandler")] get; [Android.Runtime.Register("setBasicConstraints", "(I)V", "GetSetBasicConstraints_IHandler")] set; }
[<get: Android.Runtime.Register("getBasicConstraints", "()I", "GetGetBasicConstraintsHandler")>]
[<set: Android.Runtime.Register("setBasicConstraints", "(I)V", "GetSetBasicConstraints_IHandler")>]
member this.BasicConstraints : int with get, set

Property Value

the value for the basic constraints constraint

Attributes

Exceptions

if pathLen is less than -2.

Remarks

Property getter documentation:

Returns the basic constraints constraint. If the value is greater than or equal to zero, the X509Certificates must include a basicConstraints extension with a pathLen of at least this value. If the value is -2, only end-entity certificates are accepted. If the value is -1, no basicConstraints check is done.

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

Property setter documentation:

Sets the basic constraints constraint. If the value is greater than or equal to zero, X509Certificates must include a basicConstraints extension with a pathLen of at least this value. If the value is -2, only end-entity certificates are accepted. If the value is -1, no check is done.

This constraint is useful when building a certification path forward (from the target toward the trust anchor. If a partial path has been built, any candidate certificate must have a maxPathLen value greater than or equal to the number of certificates in the partial path.

Java documentation for java.security.cert.X509CertSelector.setBasicConstraints(int).

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