- java.lang.Object
-
- java.security.SecureRandomSpi
-
- com.ibm.crypto.hdwrCCA.provider.SecureRandomGSK
-
- All Implemented Interfaces:
java.io.Serializable
public final class SecureRandomGSK extends java.security.SecureRandomSpi
This class provides a secure random number generator for creating random numbers using System SSL services.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecureRandomGSK()
Constructs a new instance of this class.SecureRandomGSK(byte[] seed)
Constructor that requires a seed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
engineGenerateSeed(int numBytes)
This method has no meaning to underlying System SSL random number generation services, but is defined in SecureRandomSpi.void
engineNextBytes(byte[] bytes)
Generates a user-specified number of random bytes.void
engineSetSeed(byte[] seed)
This method has no meaning to underlying System SSL random number generation services, but is defined in SecureRandomSpi.
-
-
-
Constructor Detail
-
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 Detail
-
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 classjava.security.SecureRandomSpi
- Parameters:
seed
- a series of bytes. This parameter is ignored.
-
engineNextBytes
public void engineNextBytes(byte[] bytes) throws java.lang.InternalError, java.lang.RuntimeException
Generates a user-specified number of random bytes.- Specified by:
engineNextBytes
in classjava.security.SecureRandomSpi
- Parameters:
bytes
- the array to be filled in with random bytes.- Throws:
java.lang.InternalError
- is thrown when an unexpected error occurs.java.lang.RuntimeException
- is thrown when a System SSL error occurs.
-
engineGenerateSeed
public byte[] engineGenerateSeed(int numBytes) throws java.lang.UnsupportedOperationException
This method has no meaning to underlying System SSL random number generation services, but is defined in SecureRandomSpi.- Specified by:
engineGenerateSeed
in classjava.security.SecureRandomSpi
- Throws:
java.lang.UnsupportedOperationException
- is always thrown if this method is invoked.
-
-