chapter8
Class Utils

java.lang.Object
  extended by chapter2.Utils
      extended by chapter3.Utils
          extended by chapter4.Utils
              extended by chapter5.Utils
                  extended by chapter6.Utils
                      extended by chapter7.Utils
                          extended by chapter8.Utils
Direct Known Subclasses:
Utils

public class Utils
extends Utils

Chapter 8 Utils


Field Summary
static java.lang.String END_ENTITY_ALIAS
           
static java.lang.String INTERMEDIATE_ALIAS
           
static java.lang.String ROOT_ALIAS
           
 
Constructor Summary
Utils()
           
 
Method Summary
static javax.security.auth.x500.X500PrivateCredential createEndEntityCredential(java.security.PrivateKey caKey, java.security.cert.X509Certificate caCert)
          Generate a X500PrivateCredential for the end entity.
static javax.security.auth.x500.X500PrivateCredential createIntermediateCredential(java.security.PrivateKey caKey, java.security.cert.X509Certificate caCert)
          Generate a X500PrivateCredential for the intermediate entity.
static javax.security.auth.x500.X500PrivateCredential createRootCredential()
          Generate a X500PrivateCredential for the root entity.
 
Methods inherited from class chapter7.Utils
generateEndEntityCert, generateIntermediateCert, generateRootCert
 
Methods inherited from class chapter6.Utils
generateRSAKeyPair
 
Methods inherited from class chapter4.Utils
createFixedRandom
 
Methods inherited from class chapter3.Utils
createCtrIvForAES, createKeyForAES, toByteArray, toString, toString
 
Methods inherited from class chapter2.Utils
toHex, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_ALIAS

public static java.lang.String ROOT_ALIAS

INTERMEDIATE_ALIAS

public static java.lang.String INTERMEDIATE_ALIAS

END_ENTITY_ALIAS

public static java.lang.String END_ENTITY_ALIAS
Constructor Detail

Utils

public Utils()
Method Detail

createRootCredential

public static javax.security.auth.x500.X500PrivateCredential createRootCredential()
                                                                           throws java.lang.Exception
Generate a X500PrivateCredential for the root entity.

Throws:
java.lang.Exception

createIntermediateCredential

public static javax.security.auth.x500.X500PrivateCredential createIntermediateCredential(java.security.PrivateKey caKey,
                                                                                          java.security.cert.X509Certificate caCert)
                                                                                   throws java.lang.Exception
Generate a X500PrivateCredential for the intermediate entity.

Throws:
java.lang.Exception

createEndEntityCredential

public static javax.security.auth.x500.X500PrivateCredential createEndEntityCredential(java.security.PrivateKey caKey,
                                                                                       java.security.cert.X509Certificate caCert)
                                                                                throws java.lang.Exception
Generate a X500PrivateCredential for the end entity.

Throws:
java.lang.Exception


Examples from "Beginning Cryptography with Java"