Credentials class Viam SDK

The credentials used for connecting to the robot

Constructors

Credentials(String type, String payload)
const
Credentials.apiKey(String payload)
Convenience initializer for creating credentials of type 'api-key' with the provided key as payload.
const
Credentials.locationSecret(String payload)
Convenience initializer for creating credentials of type 'robot-location-secret' with the provided payload.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
payload String
The payload of the credential
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The type of credential, e.g. 'robot-location-secret', 'api-key'
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited