W3cubDocs

/OpenJDK 21

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 Type Method Description
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.

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

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 in getParameters, returns the effective strength. The effective strength must be greater than or equal to the minimum strength requested.

getCapability

public DrbgParameters.Capability getCapability()
Returns the capability.
Returns:
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

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, 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.

toString

public String toString()
Returns a Human-readable string representation of this Instantiation.
Overrides:
toString in class Object
Returns:
the string representation

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/DrbgParameters.Instantiation.html