Package org.apereo.cas.util.gen
Class DefaultRandomNumberGenerator
- java.lang.Object
-
- org.apereo.cas.util.gen.AbstractRandomStringGenerator
-
- org.apereo.cas.util.gen.DefaultRandomStringGenerator
-
- org.apereo.cas.util.gen.DefaultRandomNumberGenerator
-
- All Implemented Interfaces:
RandomStringGenerator
public class DefaultRandomNumberGenerator extends DefaultRandomStringGenerator
Implementation of the RandomStringGenerator that allows you to define the length of the random part.- Since:
- 3.0.0
-
-
Field Summary
-
Fields inherited from class org.apereo.cas.util.gen.AbstractRandomStringGenerator
defaultLength, randomizer
-
Fields inherited from interface org.apereo.cas.util.gen.RandomStringGenerator
DEFAULT_LENGTH
-
-
Constructor Summary
Constructors Constructor Description DefaultRandomNumberGenerator(int defaultLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected char[]getPrintableCharacters()Get printable characters char [].-
Methods inherited from class org.apereo.cas.util.gen.DefaultRandomStringGenerator
convertBytesToString
-
Methods inherited from class org.apereo.cas.util.gen.AbstractRandomStringGenerator
getAlgorithm, getNewString, getNewString, getNewStringAsBytes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apereo.cas.util.gen.RandomStringGenerator
getDefaultLength
-
-
-
-
Method Detail
-
getPrintableCharacters
protected char[] getPrintableCharacters()
Description copied from class:DefaultRandomStringGeneratorGet printable characters char [].- Overrides:
getPrintableCharactersin classDefaultRandomStringGenerator- Returns:
- the char []
-
-