Class DrbgParameters.Instantiation
java.lang.Object
java.security.DrbgParameters.Instantiation
- All Implemented Interfaces:
SecureRandomParameters
- Enclosing class:
DrbgParameters
public static final class DrbgParameters.Instantiation
extends Object
implements SecureRandomParameters
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.
- Since:
- 9
-
Method Summary
Modifier and TypeMethodDescriptionReturns the capability.byte[]Returns the personalization string as a byte array.intReturns the security strength in bits.toString()Returns a Human-readable string representation of thisInstantiation.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Creates and returns a copy of this object.booleanIndicates whether some other object is "equal to" this one.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.final Class<?> getClass()Returns the runtime class of thisObject.inthashCode()Returns a hash code value for this object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.final voidwait()Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final voidwait(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 voidwait(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.
-
Method Details
-
getStrength
public int getStrength()Returns the security strength in bits.- Returns:
- If used in
getInstance, returns the minimum strength requested, or -1 if there is no specific request on the strength. If used ingetParameters, returns the effective strength. The effective strength must be greater than or equal to the minimum strength requested.
-
getCapability
Returns the capability.- Returns:
- If used in
getInstance, returns the minimum capability requested. If used ingetParameters, returns information on the effective prediction resistance flag and whether it supports reseeding.
-
getPersonalizationString
public byte[] getPersonalizationString()Returns the personalization string as a byte array.- Returns:
- If used in
getInstance, returns the requested personalization string as a newly allocated array, ornullif no personalization string is requested. The same string should be returned ingetParametersas a new copy, ornullif no personalization string is requested ingetInstance.
-
toString
-