chapter8
Class Utils
java.lang.Object
chapter2.Utils
chapter3.Utils
chapter4.Utils
chapter5.Utils
chapter6.Utils
chapter7.Utils
chapter8.Utils
- Direct Known Subclasses:
- Utils
public class Utils
- extends Utils
Chapter 8 Utils
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Utils
public Utils()
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"