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 Summary
Modifier and TypeMethodDescriptionbyte[]Returns the requested additional input.booleanReturns whether prediction resistance is requested.intReturns the security strength requested in bits. 
- 
Method Details
- 
getStrength
public int getStrength()Returns the security strength requested in bits.- Returns:
 - the strength requested, or -1 if the effective strength should be used.
 
 - 
getPredictionResistance
public boolean getPredictionResistance()Returns whether prediction resistance is requested.- Returns:
 - whether prediction resistance is requested
 
 - 
getAdditionalInput
public 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. 
 
 -