CertificateFactory
Class CertificateFactory
- java.lang.Object
-
- java.security.cert.CertificateFactory
public class CertificateFactory extends Object
This class defines the functionality of a certificate factory, which is used to generate certificate, certification path (CertPath
) and certificate revocation list (CRL) objects from their encodings.
For encodings consisting of multiple certificates, use generateCertificates
when you want to parse a collection of possibly unrelated certificates. Otherwise, use generateCertPath
when you want to generate a CertPath
(a certificate chain) and subsequently validate it with a CertPathValidator
.
A certificate factory for X.509 must return certificates that are an instance of <