public class KeyGenerator extends Object
Constructor and Description |
---|
KeyGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
generateId()
Generates an unique random io.
|
String |
generateSecureId()
Generates a long unique id.
|
public String generateId()
public String generateSecureId()
Due to its length and secure generation pattern such IDs are suitable for auth tokens and the like.
Copyright © 2018. All rights reserved.