java.lang.Object
java.security.SecureRandomSpi
com.ibm.crypto.hdwrCCA.provider.SecureRandomGSK
- All Implemented Interfaces:
Serializable
This class provides a secure random number generator for creating random numbers using System SSL services.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of this class.SecureRandomGSK(byte[] seed) Constructor that requires a seed. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]engineGenerateSeed(int numBytes) This method has no meaning to underlying System SSL random number generation services, but is defined in SecureRandomSpi.voidengineNextBytes(byte[] bytes) Generates a user-specified number of random bytes.voidengineSetSeed(byte[] seed) This method has no meaning to underlying System SSL random number generation services, but is defined in SecureRandomSpi.Methods inherited from class java.security.SecureRandomSpi
engineGetParameters, engineNextBytes, engineReseed, toString
-
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:
engineSetSeedin classSecureRandomSpi- Parameters:
seed- a series of bytes. This parameter is ignored.
-
engineNextBytes
Generates a user-specified number of random bytes.- Specified by:
engineNextBytesin classSecureRandomSpi- 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
This method has no meaning to underlying System SSL random number generation services, but is defined in SecureRandomSpi.- Specified by:
engineGenerateSeedin classSecureRandomSpi- Throws:
UnsupportedOperationException- is always thrown if this method is invoked.
-