[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/kotlin/java/security/cert/CertPathChecker [Back]  [Original]

CertPathChecker  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
Added in API level 24

CertPathChecker

interface CertPathChecker
java.security.cert.CertPathChecker

Performs one or more checks on each Certificate of a CertPath.

A CertPathChecker implementation is typically created to extend a certification path validation algorithm. For example, an implementation may check for and process a critical private extension of each certificate in a certification path.

Summary

Public methods
abstract Unit

Performs the check(s) on the specified certificate using its internal state.

abstract Unit
init(forward: Boolean)

Initializes the internal state of this CertPathChecker.

abstract Boolean

Indicates if forward checking is supported.

Public methods

check

Added in API level 24
abstract fun check(cert: Certificate!): Unit

Performs the check(s) on the specified certificate using its internal state. The certificates are presented in the order specified by the init method.

Parameters
cert Certificate!: the Certificate to be checked
Exceptions
java.security.cert.CertPathValidatorException if the specified certificate does not pass the check

init

Added in API level 24
abstract fun init(forward: Boolean): Unit

Initializes the internal state of this CertPathChecker.

The forward flag specifies the order that certificates will be passed to the check method (forward or reverse).

Parameters
forward Boolean: the order that certificates are presented to the check method. If true, certificates are presented from target to trust anchor (forward); if false, from trust anchor to target (reverse).
Exceptions
java.security.cert.CertPathValidatorException if this CertPathChecker is unable to check certificates in the specified order

isForwardCheckingSupported

Added in API level 24
abstract fun isForwardCheckingSupported(): Boolean

Indicates if forward checking is supported. Forward checking refers to the ability of the CertPathChecker to perform its checks when certificates are presented to the check method in the forward direction (from target to trust anchor).

Return
Boolean true if forward checking is supported, false otherwise

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page