Package model

Class Node

java.lang.Object
model.Node

public class Node extends Object
Class to represent a node.
  • Constructor Details

    • Node

      public Node​(String host, int port)
    • Node

      public Node​(SecretKey aesKey, String host, int port)
  • Method Details

    • getAesKey

      public SecretKey getAesKey()
    • setAesKey

      public void setAesKey​(SecretKey aesKey)
    • getHost

      public String getHost()
    • setHost

      public void setHost​(String host)
    • getPort

      public int getPort()
    • setPort

      public void setPort​(int port)
    • toString

      public String toString()
      Overrides:
      toString in class Object