|
|||||||||
Home >> All >> gnu >> javax >> net >> ssl >> [ provider overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
gnu.javax.net.ssl.provider
Class SSLRandom

java.lang.Objectgnu.javax.net.ssl.provider.SSLRandom
- All Implemented Interfaces:
- java.lang.Cloneable, gnu.java.security.prng.IRandom
- class SSLRandom
- extends java.lang.Object
- implements gnu.java.security.prng.IRandom
- extends java.lang.Object
Field Summary | |
private byte[] |
buffer
|
private int |
idx
|
private gnu.java.security.hash.IMessageDigest |
md5
|
private byte |
pad
|
private byte[] |
secret
|
(package private) static java.lang.String |
SECRET
|
private byte[] |
seed
|
(package private) static java.lang.String |
SEED
|
private gnu.java.security.hash.IMessageDigest |
sha
|
Constructor Summary | |
(package private) |
SSLRandom()
|
Method Summary | |
void |
addRandomByte(byte b)
Supplement, or possibly replace, the random state of this PRNG with a random byte. |
void |
addRandomBytes(byte[] buffer)
Supplement, or possibly replace, the random state of this PRNG with a sequence of new random bytes. |
void |
addRandomBytes(byte[] b,
int i,
int j)
Supplement, or possibly replace, the random state of this PRNG with a sequence of new random bytes. |
java.lang.Object |
clone()
Returns a clone copy of this instance. |
void |
init(java.util.Map attrib)
Initialises the pseudo-random number generator scheme with the appropriate attributes. |
java.lang.String |
name()
Returns the canonical name of this instance. |
private byte[] |
nextBlock()
|
byte |
nextByte()
Returns the next 8 bits of random data generated from this instance. |
void |
nextBytes(byte[] buf,
int off,
int len)
Fills the designated byte array, starting from byte at index offset , for a maximum of length bytes with the
output of this generator instance. |
boolean |
selfTest()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
SECRET
static final java.lang.String SECRET
- See Also:
- Constant Field Values
SEED
static final java.lang.String SEED
- See Also:
- Constant Field Values
md5
private final gnu.java.security.hash.IMessageDigest md5
sha
private final gnu.java.security.hash.IMessageDigest sha
secret
private byte[] secret
buffer
private byte[] buffer
pad
private byte pad
seed
private byte[] seed
idx
private int idx
Constructor Detail |
SSLRandom
SSLRandom()
Method Detail |
init
public void init(java.util.Map attrib)
- Description copied from interface:
gnu.java.security.prng.IRandom
Initialises the pseudo-random number generator scheme with the appropriate attributes.
- Specified by:
init
in interfacegnu.java.security.prng.IRandom
name
public java.lang.String name()
- Description copied from interface:
gnu.java.security.prng.IRandom
Returns the canonical name of this instance.
- Specified by:
name
in interfacegnu.java.security.prng.IRandom
clone
public java.lang.Object clone()
- Description copied from interface:
gnu.java.security.prng.IRandom
Returns a clone copy of this instance.
- Specified by:
clone
in interfacegnu.java.security.prng.IRandom
nextByte
public byte nextByte() throws gnu.java.security.prng.LimitReachedException
- Description copied from interface:
gnu.java.security.prng.IRandom
Returns the next 8 bits of random data generated from this instance.
- Specified by:
nextByte
in interfacegnu.java.security.prng.IRandom
nextBytes
public void nextBytes(byte[] buf, int off, int len) throws gnu.java.security.prng.LimitReachedException
- Description copied from interface:
gnu.java.security.prng.IRandom
Fills the designated byte array, starting from byte at index
offset
, for a maximum oflength
bytes with the output of this generator instance.- Specified by:
nextBytes
in interfacegnu.java.security.prng.IRandom
selfTest
public boolean selfTest()
addRandomByte
public void addRandomByte(byte b)
- Description copied from interface:
gnu.java.security.prng.IRandom
Supplement, or possibly replace, the random state of this PRNG with a random byte.
Implementations are not required to implement this method in any meaningful way; this may be a no-operation, and implementations may throw an java.lang.UnsupportedOperationException.
- Specified by:
addRandomByte
in interfacegnu.java.security.prng.IRandom
addRandomBytes
public void addRandomBytes(byte[] buffer)
- Description copied from interface:
gnu.java.security.prng.IRandom
Supplement, or possibly replace, the random state of this PRNG with a sequence of new random bytes.
Implementations are not required to implement this method in any meaningful way; this may be a no-operation, and implementations may throw an java.lang.UnsupportedOperationException.
- Specified by:
addRandomBytes
in interfacegnu.java.security.prng.IRandom
addRandomBytes
public void addRandomBytes(byte[] b, int i, int j)
- Description copied from interface:
gnu.java.security.prng.IRandom
Supplement, or possibly replace, the random state of this PRNG with a sequence of new random bytes.
Implementations are not required to implement this method in any meaningful way; this may be a no-operation, and implementations may throw an java.lang.UnsupportedOperationException.
- Specified by:
addRandomBytes
in interfacegnu.java.security.prng.IRandom
nextBlock
private byte[] nextBlock() throws gnu.java.security.prng.LimitReachedException
|
|||||||||
Home >> All >> gnu >> javax >> net >> ssl >> [ provider overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |