ProvisioningSasToken Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.provisioning.service.auth.ProvisioningSasToken

public class ProvisioningSasToken

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

Constructor Summary

Constructor Description
ProvisioningSasToken(ProvisioningConnectionString provisioningConnectionString)

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

Method Summary

Modifier and Type Method and Description
String toString()

Returns the string representation of the SAS token.

Constructor Details

ProvisioningSasToken

public ProvisioningSasToken(ProvisioningConnectionString provisioningConnectionString)

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

Parameters:

provisioningConnectionString - Connection string object containing the connection parameters

Throws:

IllegalArgumentException - if the provided provisioning connection string is null

Method Details

toString

public String toString()

Returns the string representation of the SAS token.

Returns:

The string representation of the SAS token.

Applies to