java.lang.Object
java.security.DrbgParameters.NextBytes
- All Implemented Interfaces:
- SecureRandomParameters
- Enclosing class:
- DrbgParameters
DRBG parameters for random bits generation. It is used in
 
SecureRandom.nextBytes(byte[], SecureRandomParameters).- Since:
- 9
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]Returns the requested additional input.booleanReturns whether prediction resistance is requested.intReturns the security strength requested in bits.
- 
Method Details- 
getStrengthpublic int getStrength()Returns the security strength requested in bits.- Returns:
- the strength requested, or -1 if the effective strength should be used.
 
- 
getPredictionResistancepublic boolean getPredictionResistance()Returns whether prediction resistance is requested.- Returns:
- whether prediction resistance is requested
 
- 
getAdditionalInputpublic byte[] getAdditionalInput()Returns the requested additional input.- Returns:
- the requested additional input, nullif not requested. A new byte array is returned each time this method is called.
 
 
-