RemoteSecondary class
Contains methods used to execute verbs on remote secondary server of the atSign.
Constructors
- RemoteSecondary(String atSign, AtClientPreference preference, {String? privateKey})
Properties
- atLookUp ↔ AtLookupImpl
-
getter/setter pair
- atLookupSync ↔ AtLookupSync
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- logger ↔ AtSignLogger
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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. -
authenticate_cram(
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. OptionallyprivateKey
is passed for verb builders which require authentication. -
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
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sync(
int? lastSyncedId, {Function? syncCallBack, String? privateKey, String? regex, bool isStream = false}) → 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