demo.x509
Class CRLExtensions

java.lang.Object
  |
  +--demo.x509.CRLExtensions

public class CRLExtensions
extends Object

This class tests the implemented X509v2 CRL extensions.

The following X509v2 CRL (entry) extensions are implemented (and tested by this class):

Issuer and issuer private key are read in from a keystore "jce.keystore" located in the current working directory (if it yet not does exist, please run SetupKeyStore for creating it.

Version:
File Revision 19

Constructor Summary
CRLExtensions()
           
 
Method Summary
static void main(String[] argv)
          Starts the CRLExtensions test.
 void start()
          Creates a new CRL and adds the CRLNumber and ReasonCode extensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRLExtensions

public CRLExtensions()
Method Detail

start

public void start()
Creates a new CRL and adds the CRLNumber and ReasonCode extensions.

Issuer and issuer private key are derived from a KeyAndCertificate structure created from a PEM encoded file "caRSA.pem" located in a "test" directory. Similary two certificates to be revoked are created from "user1.pem" respectively "user2.pem" files, again read in from the "test" directory. Run the CreateCertificates demo for creating the required structures and saving them to the files requested above, if they yet not exist.


main

public static void main(String[] argv)
                 throws IOException
Starts the CRLExtensions test.

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK