org.jasig.cas.util
Class DefaultRandomStringGenerator
java.lang.Object
org.jasig.cas.util.DefaultRandomStringGenerator
- All Implemented Interfaces:
- RandomStringGenerator
public final class DefaultRandomStringGenerator
- extends Object
- implements RandomStringGenerator
Implementation of the RandomStringGenerator that allows you to define the
length of the random part.
- Since:
- 3.0
- Version:
- $Revision$ $Date$
- Author:
- Scott Battaglia
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRandomStringGenerator
public DefaultRandomStringGenerator()
DefaultRandomStringGenerator
public DefaultRandomStringGenerator(int maxRandomLength)
getMinLength
public int getMinLength()
- Specified by:
getMinLength in interface RandomStringGenerator
- Returns:
- the minimum length as an int guaranteed by this generator.
getMaxLength
public int getMaxLength()
- Specified by:
getMaxLength in interface RandomStringGenerator
- Returns:
- the maximum length as an int guaranteed by this generator.
getNewString
public String getNewString()
- Specified by:
getNewString in interface RandomStringGenerator
- Returns:
- the new random string
getNewStringAsBytes
public byte[] getNewStringAsBytes()
- Specified by:
getNewStringAsBytes in interface RandomStringGenerator
Copyright © 2004-2013 Jasig. All Rights Reserved.