DrbgParameters.NextBytes
public
static
final
class
DrbgParameters.NextBytes
extends Object
implements
SecureRandomParameters
java.lang.Object | |
↳ | java.security.DrbgParameters.NextBytes |
DRBG parameters for random bits generation. It is used in
SecureRandom.nextBytes(byte[], SecureRandomParameters)
.
Summary
Public methods | |
---|---|
byte[]
|
getAdditionalInput()
Returns the requested additional input. |
boolean
|
getPredictionResistance()
Returns whether prediction resistance is requested. |
int
|
getStrength()
Returns the security strength requested in bits. |
Inherited methods | |
---|---|
Public methods
getAdditionalInput
public byte[] getAdditionalInput ()
Returns the requested additional input.
Returns | |
---|---|
byte[] |
the requested additional input, null if not
requested. A new byte array is returned each time this method
is called. |
getPredictionResistance
public boolean getPredictionResistance ()
Returns whether prediction resistance is requested.
Returns | |
---|---|
boolean |
whether prediction resistance is requested |
getStrength
public int getStrength ()
Returns the security strength requested in bits.
Returns | |
---|---|
int |
the strength requested, or -1 if the effective strength should be used. |