Class ShipNodeConfiguration


  • public class ShipNodeConfiguration
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ShipNodeConfiguration​(int port, java.lang.String wssPath, boolean keepAlive, java.lang.String serviceId, java.lang.String serviceDomain, java.lang.String serviceInstance, char[] passphrase, java.lang.String dn, int days)
      wrapper class for parameters for initial ship node configuration
    • Constructor Detail

      • ShipNodeConfiguration

        public ShipNodeConfiguration​(int port,
                                     java.lang.String wssPath,
                                     boolean keepAlive,
                                     java.lang.String serviceId,
                                     java.lang.String serviceDomain,
                                     java.lang.String serviceInstance,
                                     char[] passphrase,
                                     java.lang.String dn,
                                     int days)
        wrapper class for parameters for initial ship node configuration
        Parameters:
        port - port for initial server
        wssPath - wss path for initial server, example: "/ship/"
        keepAlive - indicates if keepAlive packets are allowed
        serviceId - host name for JmDNS instance (service discovery), example: "EXAMPLEBRAND-EEB01M3EU-001122334455"
        serviceDomain - which domain for service types to listen to, example: "local"
        serviceInstance - service instance label for initial server, example: "Dishwasher ExampleCompany EEB01M3EU"
        passphrase - passphrase for the key store, see KeyManagement class
        dn - X.509 Distinguished Name, eg "CN=Test, L=London, C=GB". For IoT devices, usually the DeviceID
        days - how many days the certificate should be valid for
    • Method Detail

      • getPort

        public int getPort()
      • setPort

        public void setPort​(int port)
      • getWssPath

        public java.lang.String getWssPath()
      • setWssPath

        public void setWssPath​(java.lang.String wssPath)
      • isKeepAlive

        public boolean isKeepAlive()
      • setKeepAlive

        public void setKeepAlive​(boolean keepAlive)
      • getServiceId

        public java.lang.String getServiceId()
      • setServiceId

        public void setServiceId​(java.lang.String serviceId)
      • getServiceDomain

        public java.lang.String getServiceDomain()
      • setServiceDomain

        public void setServiceDomain​(java.lang.String serviceDomain)
      • getServiceInstance

        public java.lang.String getServiceInstance()
      • setServiceInstance

        public void setServiceInstance​(java.lang.String serviceInstance)
      • getPassphrase

        public char[] getPassphrase()
      • getDn

        public java.lang.String getDn()
      • getDays

        public int getDays()