Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.crypto.jce.prng
Class CSPRNGSpi  view CSPRNGSpi download CSPRNGSpi.java

java.lang.Object
  extended byjava.security.SecureRandomSpi
      extended bygnu.javax.crypto.jce.prng.CSPRNGSpi
All Implemented Interfaces:
java.io.Serializable

public class CSPRNGSpi
extends java.security.SecureRandomSpi

The implementation of the continuously-seeded SecureRandom Service Provider Interface (SPI) adapter.


Field Summary
private  gnu.java.security.prng.IRandom adaptee
           
 
Fields inherited from class java.security.SecureRandomSpi
 
Constructor Summary
CSPRNGSpi()
           
 
Method Summary
protected  byte[] engineGenerateSeed(int count)
          Gets a user specified number of bytes specified by the parameter.
protected  void engineNextBytes(byte[] buffer)
          Gets a user specified number of bytes depending on the length of the array?
protected  void engineSetSeed(byte[] seed)
          Updates the seed for SecureRandomSpi but does not reset seed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adaptee

private final gnu.java.security.prng.IRandom adaptee
Constructor Detail

CSPRNGSpi

public CSPRNGSpi()
          throws java.lang.ClassNotFoundException,
                 java.net.MalformedURLException,
                 java.lang.NumberFormatException
Method Detail

engineGenerateSeed

protected byte[] engineGenerateSeed(int count)
Description copied from class: java.security.SecureRandomSpi
Gets a user specified number of bytes specified by the parameter.


engineNextBytes

protected void engineNextBytes(byte[] buffer)
Description copied from class: java.security.SecureRandomSpi
Gets a user specified number of bytes depending on the length of the array?


engineSetSeed

protected void engineSetSeed(byte[] seed)
Description copied from class: java.security.SecureRandomSpi
Updates the seed for SecureRandomSpi but does not reset seed. It does to this so repeated called never decrease randomness.