Class DefaultSecureRandomSupplier

  • All Implemented Interfaces:

    public class DefaultSecureRandomSupplier
    extends Object
    implements ISecureRandomSupplier
    A very simple ISecureRandomSupplier that holds a SecureRandom using SHA1PRNG. This SecureRandom is strong enough for generation of nonces with a short lifespan, but might not be strong enough for generating long-lived keys. When your application has stronger requirements on the random implementation, you should replace this class by your own implementation.