org.apache.sshd.common.random
Class JceRandom

java.lang.Object
  extended by org.apache.sshd.common.random.JceRandom
All Implemented Interfaces:
Random

public class JceRandom
extends Object
implements Random

A Random implementation using the built-in SecureRandom PRNG.

Author:
Apache MINA SSHD Project

Nested Class Summary
static class JceRandom.Factory
          Named factory for the BouncyCastle Random
 
Constructor Summary
JceRandom()
           
 
Method Summary
 void fill(byte[] foo, int start, int len)
          Fill part of bytes with random values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JceRandom

public JceRandom()
Method Detail

fill

public void fill(byte[] foo,
                 int start,
                 int len)
Description copied from interface: Random
Fill part of bytes with random values.

Specified by:
fill in interface Random
Parameters:
foo - byte array to be filled.
start - index to start filling at.
len - length of segment to fill.


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.