public final class

JCAUtil

extends Object
java.lang.Object
   ↳ sun.security.jca.JCAUtil

Class Overview

Collection of static utility methods used by the security framework.

Summary

Public Methods
static SecureRandom getSecureRandom()
Get a SecureRandom instance.
static int getTempArraySize(int totalSize)
Get the size of a temporary buffer array to use in order to be cache efficient.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static SecureRandom getSecureRandom ()

Get a SecureRandom instance. This method should me used by JDK internal code in favor of calling "new SecureRandom()". That needs to iterate through the provider table to find the default SecureRandom implementation, which is fairly inefficient.

public static int getTempArraySize (int totalSize)

Get the size of a temporary buffer array to use in order to be cache efficient. totalSize indicates the total amount of data to be buffered. Used by the engineUpdate(ByteBuffer) methods.