Interface INodeIdCreator

All Superinterfaces:
IExtensionPoint
All Known Implementing Classes:
DefaultNodeIdCreator, NodeIdCreatorAdaptor

public interface INodeIdCreator extends IExtensionPoint
An IExtensionPoint that allows SymmetricDS users to implement their own algorithms for how node_ids and passwords are generated or selected during registration. There may be only one node creator per SymmetricDS instance.

The default implementation of this is the DefaultNodeIdCreator
  • Method Details

    • selectNodeId

      String selectNodeId(Node node, String remoteHost, String remoteAddress)
      Based on the node parameters passed in generate an expected node id. This is used in an attempt to match a registration request with an open registration.
    • generateNodeId

      String generateNodeId(Node node, String remoteHost, String remoteAddress)
      Based on the node parameters passed in generate a brand new node id.
    • generatePassword

      String generatePassword(Node node)
      Generate a password to use when opening registration