IotHubSasToken 类

定义

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

public class IotHubSasToken
继承
java.lang.Object
IotHubSasToken

构造函数

IotHubSasToken()
IotHubSasToken(String hostname, String deviceId, String deviceKey, String sharedAccessToken, String moduleId, long expiryTime)

Constructor. Generates a SAS token that grants access to an IoT Hub for the specified amount of time.

方法

buildSharedAccessToken(String audience, String signature, long expiry)

Creates a shared access token from the provided audience, signature and expiry time

getSasToken()
isExpired(String sasToken)

Returns if the provided sasToken has expired yet or not

toString()

Returns the string representation of the SAS token.

适用于