Class BasicNetworkIdentificationBiz

java.lang.Object
net.solarnetwork.central.biz.BasicNetworkIdentificationBiz
All Implemented Interfaces:
NetworkIdentificationBiz

public class BasicNetworkIdentificationBiz extends Object implements NetworkIdentificationBiz
Basic implementation of NetworkIdentificationBiz.
  • Constructor Details

    • BasicNetworkIdentificationBiz

      public BasicNetworkIdentificationBiz(String networkIdentityKey, org.springframework.core.io.Resource termsOfService, String host, Integer port, boolean forceTLS, Map<String,String> networkServiceUrls)
      Constructor.
      Parameters:
      networkIdentityKey - the identity key
      termsOfService - the TOS resource
      host - the host
      port - the port
      forceTLS - true if TLS must be used
      networkServiceURLs - map of network service URLs to advertise
      Throws:
      IllegalArgumentException - if any argument is null
  • Method Details

    • getNetworkIdentity

      public net.solarnetwork.domain.NetworkIdentity getNetworkIdentity()
      Description copied from interface: NetworkIdentificationBiz
      Get the public-facing network identity for this service.

      This is the information that should be publicly available for users to view, so they can validate this against the same info presented during node association.

      Specified by:
      getNetworkIdentity in interface NetworkIdentificationBiz
      Returns:
      identity key