Top Description Fields Constructors Methods
sun.security.util

public Class AnchorCertificates

extends Object
Class Inheritance
Imports
java.io.File, .FileInputStream, java.security.AccessController, .KeyStore, .PrivilegedAction, java.security.cert.X509Certificate, java.util.Collections, .Enumeration, .HashSet, .Set, javax.security.auth.x500.X500Principal, sun.security.x509.X509CertImpl

The purpose of this class is to determine the trust anchor certificates is in the cacerts file. This is used for PKIX CertPath checking.

Field Summary

Modifier and TypeField and Description
private static Set<X500Principal>
private static Set<String>
private static final Debug
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

true if the certificate is a JDK trust anchor
contains
(X509Certificate
the certificate to check
cert
)

Checks if a certificate is a JDK trust anchor.

public static boolean

Returns:

true if the certificate is issued by a trust anchor
issuerOf
(X509Certificate
the certificate to check
cert
)

Checks if a JDK trust anchor is the issuer of a certificate.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certIssuersback to summary
private static Set<X500Principal> certIssuers
certsback to summary
private static Set<String> certs
debugback to summary
private static final Debug debug
HASHback to summary
private static final String HASH

Constructor Detail

AnchorCertificatesback to summary
private AnchorCertificates()

Method Detail

containsback to summary
public static boolean contains(X509Certificate cert)

Checks if a certificate is a JDK trust anchor.

Parameters
cert:X509Certificate

the certificate to check

Returns:boolean

true if the certificate is a JDK trust anchor

issuerOfback to summary
public static boolean issuerOf(X509Certificate cert)

Checks if a JDK trust anchor is the issuer of a certificate.

Parameters
cert:X509Certificate

the certificate to check

Returns:boolean

true if the certificate is issued by a trust anchor