Condividi tramite


PKIXParameters.CertPathCheckers Property

Definition

Returns the List of certification path checkers. -or- Sets a List of additional certification path checkers.

public virtual System.Collections.Generic.IList<Java.Security.Cert.PKIXCertPathChecker>? CertPathCheckers { [Android.Runtime.Register("getCertPathCheckers", "()Ljava/util/List;", "GetGetCertPathCheckersHandler")] get; [Android.Runtime.Register("setCertPathCheckers", "(Ljava/util/List;)V", "GetSetCertPathCheckers_Ljava_util_List_Handler")] set; }
[<get: Android.Runtime.Register("getCertPathCheckers", "()Ljava/util/List;", "GetGetCertPathCheckersHandler")>]
[<set: Android.Runtime.Register("setCertPathCheckers", "(Ljava/util/List;)V", "GetSetCertPathCheckers_Ljava_util_List_Handler")>]
member this.CertPathCheckers : System.Collections.Generic.IList<Java.Security.Cert.PKIXCertPathChecker> with get, set

Property Value

an immutable List of PKIXCertPathCheckers (may be empty, but not null)

Attributes

Remarks

Property getter documentation:

Returns the List of certification path checkers. The returned List is immutable, and each PKIXCertPathChecker in the List is cloned to protect against subsequent modifications.

Java documentation for java.security.cert.PKIXParameters.getCertPathCheckers().

Property setter documentation:

Sets a List of additional certification path checkers. If the specified List contains an object that is not a PKIXCertPathChecker, it is ignored.

Each PKIXCertPathChecker specified implements additional checks on a certificate. Typically, these are checks to process and verify private extensions contained in certificates. Each PKIXCertPathChecker should be instantiated with any initialization parameters needed to execute the check.

This method allows sophisticated applications to extend a PKIX CertPathValidator or CertPathBuilder. Each of the specified PKIXCertPathCheckers will be called, in turn, by a PKIX CertPathValidator or CertPathBuilder for each certificate processed or validated.

Regardless of whether these additional PKIXCertPathCheckers are set, a PKIX CertPathValidator or CertPathBuilder must perform all of the required PKIX checks on each certificate. The one exception to this rule is if the RevocationEnabled flag is set to false (see the #setRevocationEnabled setRevocationEnabled method).

Note that the List supplied here is copied and each PKIXCertPathChecker in the list is cloned to protect against subsequent modifications.

Java documentation for java.security.cert.PKIXParameters.setCertPathCheckers(java.util.List<java.security.cert.PKIXCertPathChecker>).

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