Class SecureRandomGSK

java.lang.Object
java.security.SecureRandomSpi
com.ibm.crypto.hdwrCCA.provider.SecureRandomGSK
All Implemented Interfaces:
Serializable

public final class SecureRandomGSK extends SecureRandomSpi

This class provides a secure random number generator for creating random numbers using System SSL services.

See Also:
  • Constructor Details

    • SecureRandomGSK

      public SecureRandomGSK()
      Constructs a new instance of this class.
    • SecureRandomGSK

      public SecureRandomGSK(byte[] seed)
      Constructor that requires a seed. This seed has no real meaning to underlying System SSL random number generation services. This constructor only exists for compatability with SecureRandomSpi.
      Parameters:
      seed - a series of bytes. This parameter is ignored.
  • Method Details

    • engineSetSeed

      public void engineSetSeed(byte[] seed)
      This method has no meaning to underlying System SSL random number generation services, but is defined in SecureRandomSpi. This method is treated as a no-op whenever called.
      Specified by:
      engineSetSeed in class SecureRandomSpi
      Parameters:
      seed - a series of bytes. This parameter is ignored.
    • engineNextBytes

      public void engineNextBytes(byte[] bytes) throws InternalError, RuntimeException
      Generates a user-specified number of random bytes.
      Specified by:
      engineNextBytes in class SecureRandomSpi
      Parameters:
      bytes - the array to be filled in with random bytes.
      Throws:
      InternalError - is thrown when an unexpected error occurs.
      RuntimeException - is thrown when a System SSL error occurs.
    • engineGenerateSeed

      public byte[] engineGenerateSeed(int numBytes) throws UnsupportedOperationException
      This method has no meaning to underlying System SSL random number generation services, but is defined in SecureRandomSpi.
      Specified by:
      engineGenerateSeed in class SecureRandomSpi
      Throws:
      UnsupportedOperationException - is always thrown if this method is invoked.