The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > java.security.cert  [9 examples] > Certificates  [5 examples]

e226. Listing All Available Certificate Formats

Retrieving the list of available certificate formats requires checking the services provided by all registered providers. The retrieved list of names can be used in creating a Certificate or CertPath object with CertificateFactory.
    // This method is implemented in e194 Listing All Available Cryptographic Services
    String[] names = getCryptoImpls("CertificateFactory");
An example of the output:
    X.509
    X509

 Related Examples
e223. Creating a New Key Pair and Self-Signed Certificate Using keytool
e224. Exporting a Certificate to a File
e225. Importing a Certificate from a File
e227. Getting the Subject and Issuer Distinguished Names of an X509 Certificate

See also: Certification Paths   


© 2002 Addison-Wesley.