S3ICore class

The main communication class to the S3I.

The S3ICore provides access to functions to receive and put the different datatype like Thing and PolicyEntry from/to the directory. (This is subject of change because maybe there will be a directory communicator)

Secondly it provides functions to communicate with the S3I-Config API.

Furthermore it provides access to the Broker and Repository classes.

Constructors

S3ICore(AuthenticationManager authManager, {String directoryUrl = 'https://dir.s3i.vswf.dev/api/2'})
Creates a new instance of S3ICore.

Properties

authManager AuthenticationManager
The authentication manager used by this instance to get valid access tokens.
final
directoryUrl String
The address which is used for all requests to the directory.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDirectory(String path, {Map<String, String> additionalHeaderFields = const <String, String>{}}) Future<Response>
Generates an authorized GET to the S3I-Directory.
getPolicy(String policyId) Future<PolicyEntry>
Requests a policy entry (matching the policyId) from the S3I-Directory.
getThing(String thingId, {FieldQuery? fields}) Future<Thing>
Requests a directory thing entry (matching the thingId) from the S3I-Directory.
login() Future<AccessToken>
Returns a valid AccessToken form the authManager.
logout() Future<bool>
Returns a valid AccessToken form the authManager.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putDirectory(String path, {Map<String, String> additionalHeaderFields = const <String, String>{}, required Map<String, dynamic> jsonBody}) Future<Response>
Generates an authorized PUT to the S3I-Directory.
putPolicy(PolicyEntry policy) Future<void>
Puts a policy entry to the S3I-Directory.
putThing(Thing thing) Future<void>
Puts a directory thing entry to the S3I-Directory.
toString() String
A string representation of this object.
inherited

Operators

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