Added in API level 35

DrbgParameters.Instantiation

public static final class DrbgParameters.Instantiation
extends Object implements SecureRandomParameters

java.lang.Object
   ↳ java.security.DrbgParameters.Instantiation


DRBG parameters for instantiation.

When used in SecureRandom.getInstance(String, SecureRandomParameters) or one of the other similar getInstance calls that take a SecureRandomParameters parameter, it means the requested instantiate parameters the newly created SecureRandom object must minimally support. When used as the return value of the SecureRandom.getParameters() method, it means the effective instantiate parameters of the SecureRandom object.

Summary

Public methods

DrbgParameters.Capability getCapability()

Returns the capability.

byte[] getPersonalizationString()

Returns the personalization string as a byte array.

int getStrength()

Returns the security strength in bits.

String toString()

Returns a Human-readable string representation of this Instantiation.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public methods

getCapability

Added in API level 35
public DrbgParameters.Capability getCapability ()

Returns the capability.

Returns
DrbgParameters.Capability If used in getInstance, returns the minimum capability requested. If used in getParameters, returns information on the effective prediction resistance flag and whether it supports reseeding.

getPersonalizationString

Added in API level 35
public byte[] getPersonalizationString ()

Returns the personalization string as a byte array.

Returns
byte[] If used in getInstance, returns the requested personalization string as a newly allocated array, or null if no personalization string is requested. The same string should be returned in getParameters as a new copy, or null if no personalization string is requested in getInstance.

getStrength

Added in API level 35
public int getStrength ()

Returns the security strength in bits.

Returns
int If used in getInstance, returns the minimum strength requested, or -1 if there is no specific request on the strength. If used in getParameters, returns the effective strength. The effective strength must be greater than or equal to the minimum strength requested.

toString

Added in API level 35
public String toString ()

Returns a Human-readable string representation of this Instantiation.

Returns
String the string representation