RemoteSecondary class

Contains methods used to execute verbs on remote secondary server of the atSign.

Constructors

RemoteSecondary(String atSign, AtClientPreference preference, {String? privateKey, AtChops? atChops, String? enrollmentId})

Properties

atChops → AtChops?
final
atLookUp ↔ AtLookupImpl
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logger ↔ AtSignLogger
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
telemetry AtTelemetryService?
getter/setter pair

Methods

addStreamData(List<int> data) → void
authenticate(dynamic privateKey) Future<bool>
Generates digest using from verb response and privateKey and performs a PKAM authentication to secondary server. This method is executed for all verbs that requires authentication.
authenticateCram(dynamic secret) Future<bool>
Generates digest using from verb response and secret and performs a CRAM authentication to secondary server
executeAndParse(VerbBuilder builder, {dynamic sync = false}) Future<String>
executeCommand(String atCommand, {bool auth = false}) Future<String?>
executeVerb(VerbBuilder builder, {bool? sync = false}) Future<String>
Executes the command returned by VerbBuilder build command on a remote secondary server. Optionally privateKey is passed for verb builders which require authentication.
findSecondaryUrl() Future<String?>
isAvailable() Future<bool>
monitor(String command, Function? notificationCallBack, String privateKey) Future<OutboundConnection>
Executes monitor verb on remote secondary. Result of the monitor verb is processed using monitorResponseCallback Deprecated Use AtClient.notificationService
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sync(int lastSyncedId, {String? regex}) Future<String?>
Executes sync verb on the remote server. Return commit entries greater than lastSyncedId.
toString() String
A string representation of this object.
inherited

Operators

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