Package net.solarnetwork.central.biz
Class BasicNetworkIdentificationBiz
java.lang.Object
net.solarnetwork.central.biz.BasicNetworkIdentificationBiz
- All Implemented Interfaces:
NetworkIdentificationBiz
Basic implementation of
NetworkIdentificationBiz.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.solarnetwork.domain.NetworkIdentityGet the public-facing network identity for this service.
-
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 keytermsOfService- the TOS resourcehost- the hostport- the portforceTLS- true if TLS must be usednetworkServiceURLs- 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:NetworkIdentificationBizGet 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:
getNetworkIdentityin interfaceNetworkIdentificationBiz- Returns:
- identity key
-