Module Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. BaseDevice - com.
microsoft. azure. sdk. iot. service. Module
- com.
- com.
public class Module
extends BaseDevice
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
id
Module name A case-sensitive string (up to 128 char long) of ASCII 7-bit alphanumeric chars + {'-', ':', '.', '+', '%', '_', '#', '*', '?', '!', '(', ')', ',', '=', '@', ';', '$', '''}. |
protected java.lang.String |
managed Specifies the module's managed by owner |
Modifier | Constructor | Description |
---|---|---|
protected |
Module(String device |
Create an Module instance using the given module name |
Modifier and Type | Method and Description |
---|---|
static Module |
create Static create function Creates module object using the given name. |
static Module |
create Static create function Creates device object using the given name that will use a Certificate Authority signed certificate for authentication. |
java.lang.String |
get Getter for module name |
java.lang.String |
get Getter for module's managed by owner |
Methods inherited from BaseDevice
id
protected String id
Module name A case-sensitive string (up to 128 char long) of ASCII 7-bit alphanumeric chars + {'-', ':', '.', '+', '%', '_', '#', '*', '?', '!', '(', ')', ',', '=', '@', ';', '$', '''}.
managedBy
protected String managedBy
Specifies the module's managed by owner
Module
protected Module(String deviceId, String moduleId, SymmetricKey symmetricKey)
Create an Module instance using the given module name
Parameters:
- ame of the module (used as module id)
- Device key. If parameter is null, then the key will be auto generated.
Throws:
deviceId
or moduleId
is null
or empty.
createFromId
public static Module createFromId(String deviceId, String moduleId, SymmetricKey symmetricKey)
Static create function Creates module object using the given name. If input symmetric key are null then they will be auto generated.
Parameters:
- String containing the device name
- String containing the module name
- Device key. If parameter is null, then the key will be auto generated.
Returns:
Throws:
deviceId
is null
or empty.
createModule
public static Module createModule(String deviceId, String moduleId, AuthenticationType authenticationType)
Static create function Creates device object using the given name that will use a Certificate Authority signed certificate for authentication.
Parameters:
- String containing the device name
- String containing the module name
- The type of authentication used by this device.
Returns:
Throws:
deviceId
or moduleId
is null
or empty.
getId
public String getId()
Getter for module name
Returns:
getManagedBy
public String getManagedBy()
Getter for module's managed by owner
Returns:
Azure SDK for Java feedback
Azure SDK for Java is an open source project. Select a link to provide feedback: