Get details about the user that has opened the current connection to the device.
This function blocks until it has succeeded.
public abstract IamUser getCurrentUser(Connection connection)
- An established connection to the device
- if the current user is not paired with the device.
- if Nabto Edge IAM is not supported by the device
an IamUser instance describing the current user