PermissioningService
public interface PermissioningService extends BesuService
This service allows plugins to decide who you should connect to and what you should send them.
Currently, there are two hooks available; connection permissioning and message permissioning.
- Connection permissioning - checks if inbound and outbound connections to peers are permitted.
NodeConnectionPermissioningProvider
- Message permissioning - checks if a devp2p message can be sent to a peer.
NodeMessagePermissioningProvider
Method Summary
Modifier and Type | Method | Description |
---|---|---|
void | registerNodeMessagePermissioningProvider(NodeMessagePermissioningProvider provider) | Registers a callback to allow the interception of a devp2p message sending request |
void | registerNodePermissioningProvider(NodeConnectionPermissioningProvider provider) | Registers a callback to allow the interception of a peer connection request |
Method Details
registerNodePermissioningProvider
void registerNodePermissioningProvider(NodeConnectionPermissioningProvider provider)
Registers a callback to allow the interception of a peer connection requestParameters: provider - The provider to register
registerNodeMessagePermissioningProvider
void registerNodeMessagePermissioningProvider(NodeMessagePermissioningProvider provider)
Registers a callback to allow the interception of a devp2p message sending requestParameters: provider - The provider to register