DrbgParameters.Instantiation (Java SE 9 & JDK 9 ) (original) (raw)
- java.security.DrbgParameters.Instantiation
All Implemented Interfaces:
[SecureRandomParameters](../../java/security/SecureRandomParameters.html "interface in java.security")
Enclosing class:
DrbgParameters
public static final class DrbgParameters.Instantiation
extends Object
implements SecureRandomParameters
DRBG parameters for instantiation.
When used inSecureRandom.getInstance(String, SecureRandomParameters) or one of the other similar getInstance
calls that take aSecureRandomParameters
parameter, it means the requested instantiate parameters the newly created SecureRandom
object must minimally support. When used as the return value of theSecureRandom.getParameters() method, it means the effective instantiate parameters of the SecureRandom
object.
Since:
9
Method Summary
All Methods Instance Methods Concrete Methods
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 thisInstantiation. * ### Methods inherited from class java.lang.[Object](../../java/lang/Object.html "class in java.lang") `[clone](../../java/lang/Object.html#clone--), [equals](../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../java/lang/Object.html#finalize--), [getClass](../../java/lang/Object.html#getClass--), [hashCode](../../java/lang/Object.html#hashCode--), [notify](../../java/lang/Object.html#notify--), [notifyAll](../../java/lang/Object.html#notifyAll--), [wait](../../java/lang/Object.html#wait--), [wait](../../java/lang/Object.html#wait-long-), [wait](../../java/lang/Object.html#wait-long-int-)`
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 in `getParameters`, returns the effective strength. The effective strength must be greater than or equal to the minimum strength requested. * #### getCapability public [DrbgParameters.Capability](../../java/security/DrbgParameters.Capability.html "enum in java.security") 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](../../java/lang/String.html "class in java.lang") toString() Returns a Human-readable string representation of this`Instantiation`. Overrides: `[toString](../../java/lang/Object.html#toString--)` in class `[Object](../../java/lang/Object.html "class in java.lang")` Returns: the string representation
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.