Condividi tramite


PKIXCertPathChecker.Init(Boolean) Method

Definition

Initializes the internal state of this PKIXCertPathChecker.

[Android.Runtime.Register("init", "(Z)V", "GetInit_ZHandler")]
public abstract void Init (bool forward);
[<Android.Runtime.Register("init", "(Z)V", "GetInit_ZHandler")>]
abstract member Init : bool -> unit

Parameters

forward
Boolean

the order that certificates are presented to the check method. If true, certificates are presented from target to most-trusted CA (forward); if false, from most-trusted CA to target (reverse).

Implements

Attributes

Exceptions

if initialization of this PKIXCertPathChecker instance fails, or if it cannot process certificates in the specified order.

Remarks

Initializes the internal state of this PKIXCertPathChecker.

The forward flag specifies the order that certificates will be passed to the #check check method (forward or reverse). A PKIXCertPathChecker<b>must</b> support reverse checking and <b>may</b> support forward checking.

Java documentation for java.security.cert.PKIXCertPathChecker.init(boolean).

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