AtLookupImpl class

Implemented types

Constructors

AtLookupImpl(String atSign, String rootDomain, int rootPort, {String? privateKey, String? cramSecret, SecondaryAddressFinder? secondaryAddressFinder, SecureSocketConfig? secureSocketConfig, Map<String, dynamic>? clientConfig, AtLookupSecureSocketFactory? secureSocketFactory, AtLookupSecureSocketListenerFactory? socketListenerFactory, AtLookupOutboundConnectionFactory? outboundConnectionFactory})

Properties

atChops ↔ AtChops?
set an instance of AtChops for signing and verification operations.
getter/setter pairoverride
connection OutboundConnection?
no setter
cramSecret String?
getter/setter pair
enrollmentId String?
getter/setter pairoverride
hashCode int
The hash code for this object.
no setterinherited
hashingAlgoType ↔ HashingAlgoType
To use a specific signing algorithm other than default one for pkam auth, set the SigningAlgoType and HashingAlgoType
getter/setter pairoverride
logger → AtSignLogger
final
messageListener ↔ OutboundMessageListener
Listener for reading verb responses from the remote server
getter/setter pair
outboundConnectionFactory AtLookupOutboundConnectionFactory
getter/setter pair
outboundConnectionTimeout ↔ dynamic
getter/setter pair
privateKey String?
getter/setter pair
requestResponseMutex ↔ Mutex
Ensures that a new request isn't sent until either response has been received from previous request, or response wasn't received due to timeout or other exception
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryAddressFinder SecondaryAddressFinder
getter/setter pairoverride
signingAlgoType ↔ SigningAlgoType
getter/setter pairoverride
socketFactory AtLookupSecureSocketFactory
latefinal
socketListenerFactory AtLookupSecureSocketListenerFactory
latefinal

Methods

authenticate(String? 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. @Deprecated('Use method pkamAuthenticate') Commenting deprecation since it causes issue in dart analyze in the caller
authenticate_cram(dynamic secret) Future<bool>
close() Future<void>
Terminates the underlying connection to the atServer used by this instance of AtLookup
override
cramAuthenticate(String secret) Future<bool>
Generates digest using from verb response and secret and performs a CRAM authentication to secondary server
override
createConnection() Future<void>
createOutBoundConnection(String host, String port, String toAtSign, SecureSocketConfig secureSocketConfig) Future<bool>
delete(String key, {String? sharedWith, bool isPublic = false}) Future<bool>
delete
override
executeCommand(String atCommand, {bool auth = false}) Future<String?>
override
executeVerb(VerbBuilder builder, {bool sync = false}) Future<String>
Executes the command returned by VerbBuilder build command on a remote secondary server. Catches any exception and throws AtLookUpException
override
isConnectionAvailable() bool
isInValid() bool
llookup(String key, {String? sharedBy, String? sharedWith, bool isPublic = false}) Future<String>
override
lookup(String key, String sharedBy, {bool auth = true, bool verifyData = false, bool metadata = false}) Future<String>
lookup
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pkamAuthenticate({String? enrollmentId}) Future<bool>
Performs a PKAM authentication using private key on the client side and public key on secondary server
override
plookup(String key, String sharedBy) Future<String>
plookup
override
scan({String? regex, String? sharedBy, bool auth = true, bool showHiddenKeys = false}) Future<List<String>>
scan
override
toString() String
A string representation of this object.
inherited
update(String key, String value, {String? sharedWith, Metadata? metadata}) Future<bool>
update
override

Operators

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

Static Methods

findSecondary(String atsign, String? rootDomain, int rootPort) Future<String?>