- 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 similargetInstancecalls that take aSecureRandomParametersparameter, it means the requested instantiate parameters the newly createdSecureRandomobject must minimally support. When used as the return value of theSecureRandom.getParameters()method, it means the effective instantiate parameters of theSecureRandomobject.- Since:
- 9
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DrbgParameters.CapabilitygetCapability()Returns the capability.byte[]getPersonalizationString()Returns the personalization string as a byte array.intgetStrength()Returns the security strength in bits.StringtoString()Returns a Human-readable string representation of thisInstantiation.
-
-
-
Method Detail
-
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
public DrbgParameters.Capability 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.
-
-