Package google.registry.util
Class UtilsModule
java.lang.Object
google.registry.util.UtilsModule
Dagger module to provide instances of various utils classes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringGenerator
provideBase58StringGenerator
(SecureRandom secureRandom) static StringGenerator
provideBase64StringGenerator
(SecureRandom secureRandom) static StringGenerator
provideDigitsOnlyStringGenerator
(SecureRandom secureRandom) static SecureRandom
-
Constructor Details
-
UtilsModule
public UtilsModule()
-
-
Method Details
-
provideSecureRandom
-
provideBase58StringGenerator
@Singleton @Provides @Named("base58StringGenerator") public static StringGenerator provideBase58StringGenerator(SecureRandom secureRandom) -
provideBase64StringGenerator
@Singleton @Provides @Named("base64StringGenerator") public static StringGenerator provideBase64StringGenerator(SecureRandom secureRandom) -
provideDigitsOnlyStringGenerator
@Singleton @Provides @Named("digitOnlyStringGenerator") public static StringGenerator provideDigitsOnlyStringGenerator(SecureRandom secureRandom)
-