Class SynchronizedSecureRandomWrapper

  • All Implemented Interfaces:
    java.io.Serializable

    public class SynchronizedSecureRandomWrapper
    extends java.security.SecureRandom
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.security.SecureRandom delegate  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] generateSeed​(int numBytes)
      Delegation
      java.lang.String getAlgorithm()
      Delegation
      boolean nextBoolean()
      Delegation
      void nextBytes​(byte[] bytes)
      Delegation
      double nextDouble()
      Delegation
      float nextFloat()
      Delegation
      double nextGaussian()
      Delegation
      int nextInt()
      Delegation
      int nextInt​(int bound)
      Delegation
      long nextLong()
      Delegation
      void setSeed​(byte[] seed)
      Delegation
      void setSeed​(long seed)
      Delegation
      • Methods inherited from class java.security.SecureRandom

        getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, toString
      • Methods inherited from class java.util.Random

        doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • delegate

        protected java.security.SecureRandom delegate
    • Constructor Detail

      • SynchronizedSecureRandomWrapper

        public SynchronizedSecureRandomWrapper​(java.security.SecureRandom delegate)
    • Method Detail

      • generateSeed

        public byte[] generateSeed​(int numBytes)
        Delegation
        Overrides:
        generateSeed in class java.security.SecureRandom
      • getAlgorithm

        public java.lang.String getAlgorithm()
        Delegation
        Overrides:
        getAlgorithm in class java.security.SecureRandom
      • nextBytes

        public void nextBytes​(byte[] bytes)
        Delegation
        Overrides:
        nextBytes in class java.security.SecureRandom
      • setSeed

        public void setSeed​(byte[] seed)
        Delegation
        Overrides:
        setSeed in class java.security.SecureRandom
      • setSeed

        public void setSeed​(long seed)
        Delegation
        Overrides:
        setSeed in class java.security.SecureRandom
      • nextBoolean

        public boolean nextBoolean()
        Delegation
        Overrides:
        nextBoolean in class java.util.Random
      • nextDouble

        public double nextDouble()
        Delegation
        Overrides:
        nextDouble in class java.util.Random
      • nextFloat

        public float nextFloat()
        Delegation
        Overrides:
        nextFloat in class java.util.Random
      • nextGaussian

        public double nextGaussian()
        Delegation
        Overrides:
        nextGaussian in class java.util.Random
      • nextInt

        public int nextInt()
        Delegation
        Overrides:
        nextInt in class java.util.Random
      • nextInt

        public int nextInt​(int bound)
        Delegation
        Overrides:
        nextInt in class java.util.Random
      • nextLong

        public long nextLong()
        Delegation
        Overrides:
        nextLong in class java.util.Random