public class SecureRandomStringIdGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected SecureRandom |
secureRandom |
| Constructor and Description |
|---|
SecureRandomStringIdGenerator()
Create a default generator
|
SecureRandomStringIdGenerator(int idLength)
Create generator with a specific identifiers length
|
protected final SecureRandom secureRandom
public SecureRandomStringIdGenerator()
public SecureRandomStringIdGenerator(int idLength)
idLength - custom identifier length (it should pow of 2)public String generate()
Copyright © 2018. All rights reserved.