Signature Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. device. auth. Signature
- com.
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 |
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java