Package org.apache.solr.util
Class NotSecurePseudoRandomSpi
java.lang.Object
java.security.SecureRandomSpi
org.apache.solr.util.NotSecurePseudoRandomSpi
- All Implemented Interfaces:
Serializable
A mocked up instance of SecureRandom that just uses
Random under the covers. This is to
prevent blocking issues that arise in platform default SecureRandom instances due to too many
instances / not enough random entropy. Tests do not need secure SSL.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]engineGenerateSeed(int numBytes) protected voidengineNextBytes(byte[] bytes) protected voidengineSetSeed(byte[] seed) byte[]generateSeed(int numBytes) returns a new byte[] filled with static datavoidnextBytes(byte[] bytes) fills the byte[] with static datavoidnextBytes(byte[] bytes, SecureRandomParameters params) voidreseed()voidreseed(SecureRandomParameters params) voidsetSeed(byte[] seed) NOOPvoidsetSeed(long seed) NOOPMethods inherited from class java.security.SecureRandomSpi
engineGetParameters, engineNextBytes, engineReseed, toString
-
Constructor Details
-
NotSecurePseudoRandomSpi
public NotSecurePseudoRandomSpi()
-
-
Method Details
-
engineSetSeed
protected void engineSetSeed(byte[] seed) - Specified by:
engineSetSeedin classSecureRandomSpi
-
engineNextBytes
protected void engineNextBytes(byte[] bytes) - Specified by:
engineNextBytesin classSecureRandomSpi
-
engineGenerateSeed
protected byte[] engineGenerateSeed(int numBytes) - Specified by:
engineGenerateSeedin classSecureRandomSpi
-
generateSeed
public byte[] generateSeed(int numBytes) returns a new byte[] filled with static data -
nextBytes
public void nextBytes(byte[] bytes) fills the byte[] with static data -
nextBytes
-
setSeed
public void setSeed(byte[] seed) NOOP -
setSeed
public void setSeed(long seed) NOOP -
reseed
public void reseed() -
reseed
-