CORDA-1337 Crypto.registerProviders (#2962)

CORDA-1337 Crypto.registerProviders + add BCPQC as well
This commit is contained in:
Konstantinos Chalkias
2018-04-13 12:40:15 +01:00
committed by GitHub
parent 91c52af5ac
commit 6f69f0252d
3 changed files with 18 additions and 2 deletions

View File

@ -9,7 +9,9 @@ import net.corda.node.internal.NodeStartup
import kotlin.system.exitProcess
fun main(args: Array<String>) {
Crypto.findProvider(CordaSecurityProvider.PROVIDER_NAME) // Install our SecureRandom before e.g. UUID asks for one.
// Register all cryptography [Provider]s first thing on boot.
// Required to install our [SecureRandom] before e.g., UUID asks for one.
Crypto.registerProviders()
// Pass the arguments to the Node factory. In the Enterprise edition, this line is modified to point to a subclass.
// It will exit the process in case of startup failure and is not intended to be used by embedders. If you want
// to embed Node in your own container, instantiate it directly and set up the configuration objects yourself.