eu.livotov.tpt.util
Class RandomPasswordGenerator

java.lang.Object
  extended by eu.livotov.tpt.util.RandomPasswordGenerator
All Implemented Interfaces:
java.io.Serializable

public class RandomPasswordGenerator
extends java.lang.Object
implements java.io.Serializable

Random, FIPS-112 password generator.

See Also:
Serialized Form

Nested Class Summary
private static class RandomPasswordGenerator.GpwData
           
private static class RandomPasswordGenerator.GpwDataInit1
           
private static class RandomPasswordGenerator.GpwDataInit2
           
 
Field Summary
protected static java.lang.String alphabet
           
protected static RandomPasswordGenerator.GpwData data
           
 
Constructor Summary
RandomPasswordGenerator()
           
 
Method Summary
static java.lang.String generate(int length)
          Generates a new password with the specified character length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected static RandomPasswordGenerator.GpwData data

alphabet

protected static final java.lang.String alphabet
See Also:
Constant Field Values
Constructor Detail

RandomPasswordGenerator

public RandomPasswordGenerator()
Method Detail

generate

public static java.lang.String generate(int length)
Generates a new password with the specified character length

Parameters:
length - characters length for the new password
Returns:
generated password