Package org.glassfish.security.common
Class SharedSecureRandomImpl
java.lang.Object
org.glassfish.security.common.SharedSecureRandomImpl
An utility class that supplies an Initialized SecureRandom.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SecureRandomget()Can a single java.security.SecureRandom instance be shared safely by multiple threads ?.
-
Constructor Details
-
SharedSecureRandomImpl
public SharedSecureRandomImpl()
-
-
Method Details
-
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.
-