|
|
@ -38,14 +38,14 @@ import java.util.Optional; |
|
|
|
|
|
|
|
|
|
|
|
public class PermJsonRpcMethods extends ApiGroupJsonRpcMethods { |
|
|
|
public class PermJsonRpcMethods extends ApiGroupJsonRpcMethods { |
|
|
|
|
|
|
|
|
|
|
|
private final Optional<AccountLocalConfigPermissioningController> accountsWhitelistController; |
|
|
|
private final Optional<AccountLocalConfigPermissioningController> accountsAllowlistController; |
|
|
|
private final Optional<NodeLocalConfigPermissioningController> nodeWhitelistController; |
|
|
|
private final Optional<NodeLocalConfigPermissioningController> nodeAllowlistController; |
|
|
|
|
|
|
|
|
|
|
|
public PermJsonRpcMethods( |
|
|
|
public PermJsonRpcMethods( |
|
|
|
final Optional<AccountLocalConfigPermissioningController> accountsWhitelistController, |
|
|
|
final Optional<AccountLocalConfigPermissioningController> accountsAllowlistController, |
|
|
|
final Optional<NodeLocalConfigPermissioningController> nodeWhitelistController) { |
|
|
|
final Optional<NodeLocalConfigPermissioningController> nodeAllowlistController) { |
|
|
|
this.accountsWhitelistController = accountsWhitelistController; |
|
|
|
this.accountsAllowlistController = accountsAllowlistController; |
|
|
|
this.nodeWhitelistController = nodeWhitelistController; |
|
|
|
this.nodeAllowlistController = nodeAllowlistController; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -56,18 +56,18 @@ public class PermJsonRpcMethods extends ApiGroupJsonRpcMethods { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected Map<String, JsonRpcMethod> create() { |
|
|
|
protected Map<String, JsonRpcMethod> create() { |
|
|
|
return mapOf( |
|
|
|
return mapOf( |
|
|
|
new PermAddNodesToWhitelist(nodeWhitelistController), |
|
|
|
new PermAddNodesToWhitelist(nodeAllowlistController), |
|
|
|
new PermAddNodesToAllowlist(nodeWhitelistController), |
|
|
|
new PermAddNodesToAllowlist(nodeAllowlistController), |
|
|
|
new PermRemoveNodesFromWhitelist(nodeWhitelistController), |
|
|
|
new PermRemoveNodesFromWhitelist(nodeAllowlistController), |
|
|
|
new PermRemoveNodesFromAllowlist(nodeWhitelistController), |
|
|
|
new PermRemoveNodesFromAllowlist(nodeAllowlistController), |
|
|
|
new PermGetNodesWhitelist(nodeWhitelistController), |
|
|
|
new PermGetNodesWhitelist(nodeAllowlistController), |
|
|
|
new PermGetNodesAllowlist(nodeWhitelistController), |
|
|
|
new PermGetNodesAllowlist(nodeAllowlistController), |
|
|
|
new PermGetAccountsWhitelist(accountsWhitelistController), |
|
|
|
new PermGetAccountsWhitelist(accountsAllowlistController), |
|
|
|
new PermGetAccountsAllowlist(accountsWhitelistController), |
|
|
|
new PermGetAccountsAllowlist(accountsAllowlistController), |
|
|
|
new PermAddAccountsToWhitelist(accountsWhitelistController), |
|
|
|
new PermAddAccountsToWhitelist(accountsAllowlistController), |
|
|
|
new PermAddAccountsToAllowlist(accountsWhitelistController), |
|
|
|
new PermAddAccountsToAllowlist(accountsAllowlistController), |
|
|
|
new PermRemoveAccountsFromWhitelist(accountsWhitelistController), |
|
|
|
new PermRemoveAccountsFromWhitelist(accountsAllowlistController), |
|
|
|
new PermRemoveAccountsFromAllowlist(accountsWhitelistController), |
|
|
|
new PermRemoveAccountsFromAllowlist(accountsAllowlistController), |
|
|
|
new PermReloadPermissionsFromFile(accountsWhitelistController, nodeWhitelistController)); |
|
|
|
new PermReloadPermissionsFromFile(accountsAllowlistController, nodeAllowlistController)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|