Signature Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.device.auth.Signature

public final class Signature

A signature that is used in the SAS token to authenticate the client.

Constructor Summary

Constructor Description
Signature(String resourceUri, long expiryTime, String deviceKey)

Constructs a Signature instance from the given resource URI, expiry time and device key.

Method Summary

Modifier and Type Method and Description
java.lang.String toString()

Returns the string representation of the signature.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals 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 java.lang.Object.wait

Constructor Details

Signature

public Signature(String resourceUri, long expiryTime, String deviceKey)

Constructs a Signature instance from the given resource URI, expiry time and device key.

Parameters:

resourceUri - the resource URI.
expiryTime - the time, as a UNIX timestamp, after which the token will become invalid.
deviceKey - the device key.

Method Details

toString

public String toString()

Returns the string representation of the signature.

Overrides:

Signature.toString()

Returns:

the string representation of the signature.

Applies to