org.glassfish.security.common
Class SharedSecureRandomImpl

java.lang.Object
  extended by org.glassfish.security.common.SharedSecureRandomImpl

public class SharedSecureRandomImpl
extends Object

An utility class that supplies an Initialized SecureRandom.


Constructor Summary
SharedSecureRandomImpl()
           
 
Method Summary
static SecureRandom get()
          Can a single java.security.SecureRandom instance be shared safely by multiple threads ?.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedSecureRandomImpl

public SharedSecureRandomImpl()
Method Detail

get

public static SecureRandom get()
Can a single java.security.SecureRandom instance be shared safely by multiple threads ?. Yes. As far as I know. nextBytes and setSeed are sync'd.



Copyright © 2012 GlassFish Community. All Rights Reserved.