rozdzial8
Class Utils

java.lang.Object
  extended byrozdzial2.Utils
      extended byrozdzial3.Utils
          extended byrozdzial4.Utils
              extended byrozdzial5.Utils
                  extended byrozdzial6.Utils
                      extended byrozdzial7.Utils
                          extended byrozdzial8.Utils
Direct Known Subclasses:
Utils

public class Utils
extends Utils

Klasa narzędziowa do rozdziału 8.


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)
          Wygenerowanie obiektu X500PrivateCredential dla podmiotu certyfikatu końcowego.
static javax.security.auth.x500.X500PrivateCredential createIntermediateCredential(java.security.PrivateKey caKey, java.security.cert.X509Certificate caCert)
          Wygenerowanie obiektu X500PrivateCredential dla podmiotu certyfikatu pośredniego.
static javax.security.auth.x500.X500PrivateCredential createRootCredential()
          Wygenerowanie obiektu X500PrivateCredential dla podmiotu certyfikatu głównego.
 
Methods inherited from class rozdzial7.Utils
generateEndEntityCert, generateIntermediateCert, generateRootCert
 
Methods inherited from class rozdzial6.Utils
generateRSAKeyPair
 
Methods inherited from class rozdzial4.Utils
createFixedRandom
 
Methods inherited from class rozdzial3.Utils
createCtrIvForAES, createKeyForAES, toByteArray, toString, toString
 
Methods inherited from class rozdzial2.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
Wygenerowanie obiektu X500PrivateCredential dla podmiotu certyfikatu głównego.

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
Wygenerowanie obiektu X500PrivateCredential dla podmiotu certyfikatu pośredniego.

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
Wygenerowanie obiektu X500PrivateCredential dla podmiotu certyfikatu końcowego.

Throws:
java.lang.Exception


Przykłady do książki Kryptografia w Javie – Podstawy