akka.remote.security.provider
Class InternetSeedGenerator

java.lang.Object
  extended by akka.remote.security.provider.InternetSeedGenerator

public final class InternetSeedGenerator
extends java.lang.Object


Constructor Summary
InternetSeedGenerator()
           
 
Method Summary
 byte[] generateSeed(int length)
          Generates a seed by trying each of the available strategies in turn until one succeeds.
static InternetSeedGenerator getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternetSeedGenerator

public InternetSeedGenerator()
Method Detail

getInstance

public static InternetSeedGenerator getInstance()
Returns:
The singleton instance of this class.

generateSeed

public byte[] generateSeed(int length)
Generates a seed by trying each of the available strategies in turn until one succeeds. Tries the most suitable strategy first and eventually degrades to the least suitable (but guaranteed to work) strategy.

Parameters:
length - The length (in bytes) of the seed.
Returns:
A random seed of the requested length.