public final class IotHubSasToken extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
expiryTime
The time, as a UNIX timestamp, before which the token is valid.
|
protected String |
sasToken |
protected String |
scope
The URI for a connection from a device to an IoT Hub.
|
protected String |
signature
Components of the SAS token.
|
static String |
TOKEN_FORMAT
The SAS token format.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IotHubSasToken() |
|
IotHubSasToken(DeviceClientConfig config,
long expiryTime)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildSasToken() |
protected boolean |
isSasFormat() |
String |
toString()
Returns the string representation of the SAS token.
|
public static final String TOKEN_FORMAT
protected String sasToken
protected String signature
protected long expiryTime
protected String scope
public IotHubSasToken(DeviceClientConfig config, long expiryTime)
config - the device client config.expiryTime - the time, as a UNIX timestamp, after which the token
will become invalid.protected IotHubSasToken()
Copyright © 2017. All rights reserved.