RemoteSecondary class

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


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


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


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.
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.


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