faster key encoding/decoding and generic converters between key implementations

This commit is contained in:
Konstantinos Chalkias
2017-05-22 11:14:05 +01:00
committed by GitHub
parent 1bc4c490bc
commit 53276c1f06
8 changed files with 208 additions and 117 deletions

View File

@ -605,7 +605,7 @@ abstract class AbstractNode(open val configuration: NodeConfiguration,
val identityAndKey = if (configuration.keyStoreFile.exists() && keystore.containsAlias(privateKeyAlias)) {
// Get keys from keystore.
val (cert, keyPair) = keystore.getCertificateAndKey(privateKeyAlias, configuration.keyStorePassword)
val (cert, keyPair) = keystore.getCertificateAndKeyPair(privateKeyAlias, configuration.keyStorePassword)
val loadedServiceName = X509CertificateHolder(cert.encoded).subject
if (X509CertificateHolder(cert.encoded).subject != serviceName) {
throw ConfigurationException("The legal name in the config file doesn't match the stored identity keystore:" +

View File

@ -1,6 +1,5 @@
package net.corda.node.services.network
import net.corda.core.crypto.CertificateAndKey
import net.corda.core.crypto.X509Utilities
import net.corda.core.crypto.generateKeyPair
import net.corda.core.identity.AnonymousParty