|
39 | 39 | import org.hyperledger.besu.tests.acceptance.dsl.node.RunnableNode;
|
40 | 40 | import org.hyperledger.besu.tests.acceptance.dsl.node.configuration.genesis.GenesisConfigurationFactory;
|
41 | 41 | import org.hyperledger.besu.tests.acceptance.dsl.node.configuration.genesis.GenesisConfigurationFactory.CliqueOptions;
|
42 |
| -import org.hyperledger.besu.tests.acceptance.dsl.node.configuration.pki.PkiKeystoreConfigurationFactory; |
43 | 42 |
|
44 | 43 | import java.io.File;
|
45 | 44 | import java.io.IOException;
|
|
57 | 56 | public class BesuNodeFactory {
|
58 | 57 |
|
59 | 58 | private final NodeConfigurationFactory node = new NodeConfigurationFactory();
|
60 |
| - private final PkiKeystoreConfigurationFactory pkiKeystoreConfigurationFactory = |
61 |
| - new PkiKeystoreConfigurationFactory(); |
62 | 59 |
|
63 | 60 | public BesuNode create(final BesuNodeConfiguration config) throws IOException {
|
64 | 61 | return new BesuNode(
|
@@ -94,7 +91,6 @@ public BesuNode create(final BesuNodeConfiguration config) throws IOException {
|
94 | 91 | config.getPrivacyParameters(),
|
95 | 92 | config.getRunCommand(),
|
96 | 93 | config.getKeyPair(),
|
97 |
| - config.getPkiKeyStoreConfiguration(), |
98 | 94 | config.isStrictTxReplayProtectionEnabled(),
|
99 | 95 | config.getEnvironment());
|
100 | 96 | }
|
@@ -517,31 +513,6 @@ public BesuNode createQbftNode(final String name) throws IOException {
|
517 | 513 | .build());
|
518 | 514 | }
|
519 | 515 |
|
520 |
| - public BesuNode createPkiQbftJKSNode(final String name) throws IOException { |
521 |
| - return createPkiQbftNode(KeyStoreWrapper.KEYSTORE_TYPE_JKS, name); |
522 |
| - } |
523 |
| - |
524 |
| - public BesuNode createPkiQbftPKCS11Node(final String name) throws IOException { |
525 |
| - return createPkiQbftNode(KeyStoreWrapper.KEYSTORE_TYPE_PKCS11, name); |
526 |
| - } |
527 |
| - |
528 |
| - public BesuNode createPkiQbftPKCS12Node(final String name) throws IOException { |
529 |
| - return createPkiQbftNode(KeyStoreWrapper.KEYSTORE_TYPE_PKCS12, name); |
530 |
| - } |
531 |
| - |
532 |
| - public BesuNode createPkiQbftNode(final String type, final String name) throws IOException { |
533 |
| - return create( |
534 |
| - new BesuNodeConfigurationBuilder() |
535 |
| - .name(name) |
536 |
| - .miningEnabled() |
537 |
| - .jsonRpcConfiguration(node.createJsonRpcWithQbftEnabledConfig(false)) |
538 |
| - .webSocketConfiguration(node.createWebSocketEnabledConfig()) |
539 |
| - .devMode(false) |
540 |
| - .genesisConfigProvider(GenesisConfigurationFactory::createQbftGenesisConfig) |
541 |
| - .pkiBlockCreationEnabled(pkiKeystoreConfigurationFactory.createPkiConfig(type, name)) |
542 |
| - .build()); |
543 |
| - } |
544 |
| - |
545 | 516 | public BesuNode createCustomGenesisNode(
|
546 | 517 | final String name, final String genesisPath, final boolean canBeBootnode) throws IOException {
|
547 | 518 | return createCustomGenesisNode(name, genesisPath, canBeBootnode, false);
|
@@ -699,41 +670,6 @@ public BesuNode createQbftNodeWithContractBasedValidators(
|
699 | 670 | .build());
|
700 | 671 | }
|
701 | 672 |
|
702 |
| - public BesuNode createPkiQbftJKSNodeWithValidators(final String name, final String... validators) |
703 |
| - throws IOException { |
704 |
| - return createPkiQbftNodeWithValidators(KeyStoreWrapper.KEYSTORE_TYPE_JKS, name, validators); |
705 |
| - } |
706 |
| - |
707 |
| - public BesuNode createPkiQbftPKCS11NodeWithValidators( |
708 |
| - final String name, final String... validators) throws IOException { |
709 |
| - return createPkiQbftNodeWithValidators(KeyStoreWrapper.KEYSTORE_TYPE_PKCS11, name, validators); |
710 |
| - } |
711 |
| - |
712 |
| - public BesuNode createPkiQbftPKCS12NodeWithValidators( |
713 |
| - final String name, final String... validators) throws IOException { |
714 |
| - return createPkiQbftNodeWithValidators(KeyStoreWrapper.KEYSTORE_TYPE_PKCS12, name, validators); |
715 |
| - } |
716 |
| - |
717 |
| - public BesuNode createPkiQbftNodeWithValidators( |
718 |
| - final String type, final String name, final String... validators) throws IOException { |
719 |
| - |
720 |
| - return create( |
721 |
| - new BesuNodeConfigurationBuilder() |
722 |
| - .name(name) |
723 |
| - .miningEnabled() |
724 |
| - .jsonRpcConfiguration(node.createJsonRpcWithQbftEnabledConfig(false)) |
725 |
| - .webSocketConfiguration(node.createWebSocketEnabledConfig()) |
726 |
| - .devMode(false) |
727 |
| - .pkiBlockCreationEnabled(pkiKeystoreConfigurationFactory.createPkiConfig(type, name)) |
728 |
| - .genesisConfigProvider( |
729 |
| - nodes -> |
730 |
| - node.createGenesisConfigForValidators( |
731 |
| - asList(validators), |
732 |
| - nodes, |
733 |
| - GenesisConfigurationFactory::createQbftGenesisConfig)) |
734 |
| - .build()); |
735 |
| - } |
736 |
| - |
737 | 673 | public BesuNode createNodeWithStaticNodes(final String name, final List<Node> staticNodes)
|
738 | 674 | throws IOException {
|
739 | 675 |
|
|
0 commit comments