IotHubServiceSasToken Class

Definition

Grants device access to an IoT Hub for the specified amount of time.

public final class IotHubServiceSasToken
Inheritance
java.lang.Object
IotHubServiceSasToken

Inherited Members

java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Constructors

IotHubServiceSasToken(IotHubConnectionString iotHubConnectionString)

Constructor. Generates a SAS token that grants access to an IoT Hub for the specified amount of time. (1 year specified in TOKEN_VALID_SECS)

Fields

TOKEN_FORMAT

The SAS token format. The parameters to be interpolated are, in order: the signature the resource URI the expiry time the key name Example: SharedAccessSignature sr=IOTHUBURI&sig=SIGNATURE&se=EXPIRY&skn=SHAREDACCESSKEYNAME

expiryTime
keyName
keyValue
resourceUri
token

Methods

toString()

Returns the string representation of the SAS token.

Applies to