APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.provider

public Class MoreDrbgParameters

extends Object
implements SecureRandomParameters, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.security.SecureRandomParameters
Imports
java.io.IOException, .Serializable, java.security.DrbgParameters, .SecureRandomParameters

Exported and non-exported parameters that can be used by DRBGs.

Field Summary

Modifier and TypeField and Description
pack-priv final String
pack-priv final DrbgParameters.Capability
pack-priv final transient EntropySource
pack-priv final String
pack-priv byte[]
pack-priv byte[]
private static final long
pack-priv final int
pack-priv final boolean

Constructor Summary

AccessConstructor and Description
public
MoreDrbgParameters(EntropySource
the EntropySource to use. If set to null, a default entropy source will be used.
es
,
String
mech name. If set to null, the one in securerandom.drbg.config is used. This argument is ignored when passing to HashDrbg/HmacDrbg/CtrDrbg.
mech
,
String
the requested algorithm to use. If set to null, the algorithm will be decided by strength.
algorithm
,
byte[]
the nonce to use. If set to null, a nonce will be assigned.
nonce
,
boolean
whether a derivation function should be used
usedf
,
DrbgParameters.Instantiation config)

Creates a new MoreDrbgParameters object.

Method Summary

Modifier and TypeMethod and Description
private void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

algorithmback to summary
pack-priv final String algorithm
capabilityback to summary
pack-priv final DrbgParameters.Capability capability
esback to summary
pack-priv final transient EntropySource es
mechback to summary
pack-priv final String mech
nonceback to summary
pack-priv byte[] nonce
personalizationStringback to summary
pack-priv byte[] personalizationString
serialVersionUIDback to summary
private static final long serialVersionUID
Annotations
@Serial
strengthback to summary
pack-priv final int strength
usedfback to summary
pack-priv final boolean usedf

Constructor Detail

MoreDrbgParametersback to summary
public MoreDrbgParameters(EntropySource es, String mech, String algorithm, byte[] nonce, boolean usedf, DrbgParameters.Instantiation config)

Creates a new MoreDrbgParameters object.

Parameters
es:EntropySource

the EntropySource to use. If set to null, a default entropy source will be used.

mech:String

mech name. If set to null, the one in securerandom.drbg.config is used. This argument is ignored when passing to HashDrbg/HmacDrbg/CtrDrbg.

algorithm:String

the requested algorithm to use. If set to null, the algorithm will be decided by strength.

nonce:byte[]

the nonce to use. If set to null, a nonce will be assigned.

usedf:boolean

whether a derivation function should be used

config:DrbgParameters.Instantiation

a DrbgParameters.Instantiation object

Method Detail

readObjectback to summary
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
Annotations
@Serial
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override