Skip to content

Most visited

Recently visited

navigation
added in API level 24

CertPathChecker

public interface CertPathChecker

java.security.cert.CertPathChecker
Known Indirect Subclasses


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 void check(Certificate cert)

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

abstract void init(boolean forward)

Initializes the internal state of this CertPathChecker.

abstract boolean isForwardCheckingSupported()

Indicates if forward checking is supported.

Public methods

check

added in API level 24
void check (Certificate cert)

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

Throws
CertPathValidatorException if the specified certificate does not pass the check

init

added in API level 24
void init (boolean forward)

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).

Throws
CertPathValidatorException if this CertPathChecker is unable to check certificates in the specified order

isForwardCheckingSupported

added in API level 24
boolean isForwardCheckingSupported ()

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).

Returns
boolean true if forward checking is supported, false otherwise

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)