org.glassfish.security.common
Class SharedSecureRandomImpl
java.lang.Object
org.glassfish.security.common.SharedSecureRandomImpl
public class SharedSecureRandomImpl
- extends Object
An utility class that supplies an Initialized SecureRandom.
|
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 |
SharedSecureRandomImpl
public SharedSecureRandomImpl()
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.