Class SharedSecureRandomImpl

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

public class SharedSecureRandomImpl extends Object
An utility class that supplies an Initialized SecureRandom.
  • Constructor Details

    • SharedSecureRandomImpl

      public SharedSecureRandomImpl()
  • Method Details

    • 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.