| java.lang.Object |
| ↳ |
net.schmizz.sshj.transport.random.JCERandom |
Class Overview
A Random implementation using the built-in SecureRandom PRNG.
Summary
| Nested Classes |
|
class |
JCERandom.Factory |
Named factory for the JCE Random |
| Fields |
|
private
final
SecureRandom |
random |
|
|
private
byte[] |
tmp |
|
| Public Methods |
|
synchronized
void
|
fill(byte[] foo, int start, int len)
Fill the given byte-array with random bytes from this PRNG.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
net.schmizz.sshj.transport.random.Random
|
abstract
void
|
fill(byte[] bytes, int start, int len)
Fill part of bytes with random values.
|
|
Fields
private
final
SecureRandom
random
Public Constructors
Public Methods
public
synchronized
void
fill
(byte[] foo, int start, int len)
Fill the given byte-array with random bytes from this PRNG.
Parameters
| foo
| The byte-array |
| start
| The offset to start at |
| len
| The number of bytes to fill
|