|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.EntropySource
public abstract class EntropySource
An abstract class representing sources of seed material for PRNGs. It is important to note that the entropy gathered by such a source should be used as seeding material to a secure PRNG only, and never as cryptographic material -- such as keys or initialization vectors -- in raw form.
RandomBitsSource
Constructor Summary | |
---|---|
protected |
EntropySource() Empty constructor. |
Method Summary | |
---|---|
abstract void |
clear() Destroys (writes zero to) sensitive internal data structures used by the entropy source. |
abstract byte |
generateByte() Generate a byte of seeding material. |
byte[] |
generateBytes(byte[] bytes) Supplies the requisite number of bytes, by successive calls to generateByte() . |
static EntropySource |
getDefault() Returns the system-wide default entropy source. |
static void |
setDefault(EntropySource es) Sets the system-wide default entropy source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected EntropySource()
Method Detail |
---|
public abstract byte generateByte()
IllegalStateException
being thrown.)public byte[] generateBytes(byte[] bytes)
generateByte()
.public abstract void clear()
public static EntropySource getDefault()
public static void setDefault(EntropySource es)
|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |