mirror of
https://github.com/google/nomulus.git
synced 2025-05-19 18:59:35 +02:00
Create GenerateAllocationTokens nomulus tool command
This creates a specified number of tokens of a given schema, with a dryrun option to not persist them. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=181403775
This commit is contained in:
parent
ccbe958063
commit
646dcecd7e
8 changed files with 307 additions and 14 deletions
|
@ -57,7 +57,6 @@ import google.registry.xjc.secdns.XjcSecdnsDsDataType;
|
|||
import java.security.NoSuchAlgorithmException;
|
||||
import java.security.ProviderException;
|
||||
import java.security.SecureRandom;
|
||||
import java.util.Random;
|
||||
import java.util.function.Function;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
|
@ -65,10 +64,10 @@ import org.joda.time.DateTime;
|
|||
final class XjcToDomainResourceConverter extends XjcToEppResourceConverter {
|
||||
|
||||
@NonFinalForTesting
|
||||
static StringGenerator stringGenerator = new RandomStringGenerator(
|
||||
StringGenerator.Alphabets.BASE_64, getRandom());
|
||||
static StringGenerator stringGenerator =
|
||||
new RandomStringGenerator(StringGenerator.Alphabets.BASE_64, getRandom());
|
||||
|
||||
static Random getRandom() {
|
||||
static SecureRandom getRandom() {
|
||||
try {
|
||||
return SecureRandom.getInstance("NativePRNG");
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue