Module java.base
Package java.security

Class DrbgParameters.Instantiation

    • 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 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