APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.validator

pack-priv final Class ChunghwaTLSPolicy

extends Object
Class Inheritance
Imports
java.security.cert.X509Certificate, java.time.LocalDate, .Month, .ZoneOffset, java.util.Date, .Map, .Set, sun.security.util.Debug, sun.security.x509.X509CertImpl

This class checks if Chunghwa issued TLS Server certificates should be restricted.

Field Summary

Modifier and TypeField and Description
private static final Debug
private static final String
private static final LocalDate

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
checkDistrust(X509Certificate[]
the end-entity's certificate chain. The end entity cert is at index 0, the trust anchor at index n-1.
chain
)

This method assumes the eeCert is a TLS Server Cert and chains back to the anchor.

private static void
checkNotBefore(LocalDate notBeforeDate, LocalDate distrustDate, X509Certificate anchor)

private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

debugback to summary
private static final Debug debug
FINGERPRINTback to summary
private static final String FINGERPRINT
MARCH_17_2026back to summary
private static final LocalDate MARCH_17_2026

Constructor Detail

ChunghwaTLSPolicyback to summary
private ChunghwaTLSPolicy()

Method Detail

checkDistrustback to summary
pack-priv static void checkDistrust(X509Certificate[] chain) throws ValidatorException

This method assumes the eeCert is a TLS Server Cert and chains back to the anchor.

Parameters
chain:X509Certificate[]

the end-entity's certificate chain. The end entity cert is at index 0, the trust anchor at index n-1.

Exceptions
ValidatorException:
if the certificate is distrusted
checkNotBeforeback to summary
private static void checkNotBefore(LocalDate notBeforeDate, LocalDate distrustDate, X509Certificate anchor) throws ValidatorException
fingerprintback to summary
private static String fingerprint(X509Certificate cert)