Package org.apache.solr.util
Class NotSecurePseudoRandomSpi
- java.lang.Object
- 
- java.security.SecureRandomSpi
- 
- org.apache.solr.util.NotSecurePseudoRandomSpi
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class NotSecurePseudoRandomSpi extends SecureRandomSpi A mocked up instance of SecureRandom that just usesRandomunder 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:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description NotSecurePseudoRandomSpi()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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)NOOP- 
Methods inherited from class java.security.SecureRandomSpiengineGetParameters, engineNextBytes, engineReseed, toString
 
- 
 
- 
- 
- 
Method Detail- 
engineSetSeedprotected void engineSetSeed(byte[] seed) - Specified by:
- engineSetSeedin class- SecureRandomSpi
 
 - 
engineNextBytesprotected void engineNextBytes(byte[] bytes) - Specified by:
- engineNextBytesin class- SecureRandomSpi
 
 - 
engineGenerateSeedprotected byte[] engineGenerateSeed(int numBytes) - Specified by:
- engineGenerateSeedin class- SecureRandomSpi
 
 - 
generateSeedpublic byte[] generateSeed(int numBytes) returns a new byte[] filled with static data
 - 
nextBytespublic void nextBytes(byte[] bytes) fills the byte[] with static data
 - 
nextBytespublic void nextBytes(byte[] bytes, SecureRandomParameters params)
 - 
setSeedpublic void setSeed(byte[] seed) NOOP
 - 
setSeedpublic void setSeed(long seed) NOOP
 - 
reseedpublic void reseed() 
 - 
reseedpublic void reseed(SecureRandomParameters params) 
 
- 
 
-