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
andHashingAlgoType
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 serveroverride -
createConnection(
) → Future< void> -
createOutBoundConnection(
String host, String port, String toAtSign, SecureSocketConfig secureSocketConfig) → Future< bool> -
delete(
String key, {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 AtLookUpExceptionoverride -
isConnectionAvailable(
) → bool -
isInValid(
) → bool -
llookup(
String key, {bool isPublic = false}) → Future< String> -
override
-
lookup(
String key, 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, ) → Future< String> -
plookup
override
-
scan(
{String? regex, 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, {Metadata? metadata}) → Future< bool> -
update
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited