Package ej.aws.iot

Class AwsIotClientOptions


  • public class AwsIotClientOptions
    extends Object
    This class represents the connection options of an AWS IoT Thing, needed to connect to the platform.
    • Method Detail

      • getServerHost

        public String getServerHost()
        Gets the serverHost.
        Returns:
        the serverHost.
      • getServerPort

        public int getServerPort()
        Gets the serverPort.
        Returns:
        the serverPort.
      • getThingName

        public String getThingName()
        Gets the thingName.
        Returns:
        the thingName.
      • getClientId

        public String getClientId()
        Gets the clientId.
        Returns:
        the clientId.
      • getTimeout

        public int getTimeout()
        Gets the timeout.
        Returns:
        the timeout.
      • getKeepAlive

        public int getKeepAlive()
        Gets the keepAlive.
        Returns:
        the keepAlive.
      • getSocketFactory

        public SocketFactory getSocketFactory()
        Gets the sslContext.
        Returns:
        the sslContext.
      • getServerURL

        public String getServerURL()
        Builds the server address.
        Returns:
        the correctly formatted server address
      • generateClientId

        public static String generateClientId()
        generate a random client id id should be < 65535
        Returns:
        random client id prefixed by CLIENT_ID_PREFIX
      • getUsername

        public String getUsername()
        Gets the username.
        Returns:
        the username.
      • getPassword

        public char[] getPassword()
        Gets the password.
        Returns:
        the password.