Package org.glassfish.security.common
Class SharedSecureRandomImpl
- java.lang.Object
-
- org.glassfish.security.common.SharedSecureRandomImpl
-
- Direct Known Subclasses:
SharedSecureRandom
public class SharedSecureRandomImpl extends Object
An utility class that supplies an Initialized SecureRandom.
-
-
Constructor Summary
Constructors Constructor Description SharedSecureRandomImpl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SecureRandom
get()
Can a single java.security.SecureRandom instance be shared safely by multiple threads ?.
-
-
-
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.
-
-