Package ej.aws.iot
Class AwsIotClientOptions
- java.lang.Object
-
- ej.aws.iot.AwsIotClientOptions
-
public class AwsIotClientOptions extends Object
This class represents the connection options of an AWS IoT Thing, needed to connect to the platform.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAwsIotClientOptions.BuilderConfigure and Create an instance ofAwsIotClientOptions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgenerateClientId()generate a random client id id should be<65535StringgetClientId()Gets the clientId.intgetKeepAlive()Gets the keepAlive.char[]getPassword()Gets the password.StringgetServerHost()Gets the serverHost.intgetServerPort()Gets the serverPort.StringgetServerURL()Builds the server address.SocketFactorygetSocketFactory()Gets the sslContext.StringgetThingName()Gets the thingName.intgetTimeout()Gets the timeout.StringgetUsername()Gets the username.
-
-
-
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.
-
-