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

public final Class UntrustedCertificates

extends Object
Class Inheritance
Imports
java.io.*, java.security.cert.X509Certificate, java.util.Properties, jdk.internal.util.StaticProperty, sun.security.x509.X509CertImpl

A utility class to check if a certificate is untrusted. This is an internal mechanism that explicitly marks a certificate as untrusted, normally in the case that a certificate is known to be used for malicious reasons. Attention: This check is NOT meant to replace the standard PKI-defined validation check, neither is it used as an alternative to CRL.

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if the certificate is untrusted.
isUntrusted
(X509Certificate
the certificate to check
cert
)

Checks if a certificate is untrusted.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algorithmback to summary
private static final String algorithm
ALGORITHM_KEYback to summary
private static final String ALGORITHM_KEY
debugback to summary
private static final Debug debug
propsback to summary
private static final Properties props

Constructor Detail

UntrustedCertificatesback to summary
private UntrustedCertificates()

Method Detail

isUntrustedback to summary
public static boolean isUntrusted(X509Certificate cert)

Checks if a certificate is untrusted.

Parameters
cert:X509Certificate

the certificate to check

Returns:boolean

true if the certificate is untrusted.