chapter4
Class Utils

java.lang.Object
  extended by chapter2.Utils
      extended by chapter3.Utils
          extended by chapter4.Utils
Direct Known Subclasses:
Utils

public class Utils
extends Utils

Utility class for chapter 4 examples


Constructor Summary
Utils()
           
 
Method Summary
static java.security.SecureRandom createFixedRandom()
          Return a SecureRandom which produces the same value.
 
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
 

Constructor Detail

Utils

public Utils()
Method Detail

createFixedRandom

public static java.security.SecureRandom createFixedRandom()
Return a SecureRandom which produces the same value. This is for testing only!

Returns:
a fixed random


Examples from "Beginning Cryptography with Java"