AtClientPreference class

Class to hold attributes for client preferences. Set the preferences for your application and pass it to Atsign.open or buildAtClient.

Constructors

AtClientPreference({PqPosture posture = PqPosture.legacy, PqStartupGates? pqStartupGates, SigningAlgoType? authenticationKeyAlgorithm, Set<SigningAlgoType>? dataSigningKeyAlgorithms, List<String>? sealsToKeyAlgorithms, List<String>? keyEstablishmentAlgorithms})

Properties

allowLegacyCryptoFallback ↔ bool
Whether a write that cannot go out under crypto's scheme may fall back to legacy encryption instead of failing with NamespaceKeyUnavailableException.
getter/setter pair
atClientParticulars ↔ AtClientParticulars
getter/setter pair
authenticationKeyAlgorithm → SigningAlgoType
The algorithm this client's APKAM authentication key is minted under when a retrofit names none — the key that proves possession on a connection, which only the atServer verifies.
final
cramSecret ↔ String?
The atSign's CRAM secret, read by a RemoteSecondary built without an AtKeysIo; a client authenticates from its AtKeysIo and ignores it.
getter/setter pair
crypto ↔ CryptoConfig
Configures the crypto providers used for encrypted puts and reads.
getter/setter pair
dataSigningKeyAlgorithms → Set<SigningAlgoType>
Which algorithms this client keeps an active signing key for — the keys that sign what its enrollment attests to, which is a different job from the APKAM authentication key that proves possession on a connection.
final
disallowLegacyEncryption → bool
Never encrypt new data with the legacy (pre-post-quantum) provider: take a post-quantum path, or refuse the write.
final
expiryCheckTimeInterval ↔ Duration
Time interval for the scheduled task that removes expired keys from local keyStore
getter/setter pair
fetchOfflineNotifications ↔ bool
Fetch the notifications received while the client was offline, from the last one it received; a store that has received none starts from when its client first started, so a new device or a reinstall gets nothing sent before it. Notifications are not a history: keep history in records. Defaults to true.
getter/setter pair
fileEncryptionChunkSize ↔ int
Default chunk size for file encryption and decryption
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hiveStoragePath ↔ String?
Read by nothing in at_client, which opens a client only on the AtClientStorage it is given. at_client_flutter's flows and dialogs still read it when an app gives them no storage.
getter/setter pair
keyEstablishmentAlgorithms → List<String>
Which key-establishment algorithms this atSign mints and advertises — ids from SecretSharingAlgos.keyAlgos, strongest-preferred first, where sealsToKeyAlgorithms is which of a recipient's this client will use.
final
maxDataSize ↔ int
The maximum size of the value that a secondary server can store. BufferOverFlowException is thrown when size of the value exceeds the maxDataSize
getter/setter pair
monitorAutoStart ↔ bool
  • when true, then the notifications monitor will be started either the first time that NotificationService.subscribe is called by the application code, or 30 seconds after creation of the NotificationService if there have been no subscriptions.
  • when false, then the notifications monitor will not be started until explicitly requested to do so by the application calling NotificationService.startListening
  • getter/setter pair
    monitorHeartbeatInterval ↔ Duration
    The NotificationService maintains a connection which monitors for new notifications being delivered from the atServer. Because network weather is real, and because it is generally essential for client programs to receive notifications consistently, a heartbeat no-op command is sent to the atServer periodically, at this interval
    getter/setter pair
    monitorHeartbeatResponseTimeout ↔ Duration
    When a heartbeat is sent by the notifications monitor, we wait for this length of time to receive a response. If no response is received, then the connection is closed, and the notifications monitor will reconnect.
    getter/setter pair
    monitorSilenceTimeout ↔ Duration
    How long the notifications monitor tolerates a connection that answers heartbeats while delivering nothing, before rebuilding it.
    getter/setter pair
    namespace ↔ String?
    Specifies the namespace of an app.
    getter/setter pair
    networkTimeout ↔ Duration?
    The process-wide default network timeout: the timeout for each network operation the SDK makes, such as a connect, an atDirectory lookup, or the wait for a response's next bytes. One SDK call can make several in sequence, so its wall-clock can be a multiple of this. When set on the AtClientPreference used to create an AtClient, it becomes AtNetworkTimeouts.defaultTimeout for the whole process (capped at AtNetworkTimeouts.maxAllowed, 60s). When null, the existing default (30s) applies.
    getter/setter pair
    posture → PqPosture
    How far into the post-quantum rollout this client runs — every rollout axis set as a group, and a floor an explicit axis may raise but not lower.
    final
    pqStartupGates → PqStartupGates?
    Which of the post-quantum startup's steps this client runs, or null to let posture decide — every step when it configures post-quantum providers, none when it does not.
    final
    remoteLocalPref ↔ RemoteLocalPref
    Set this to RemoteLocalPref.remoteOnly if you require all data operations (get / put / delete) to be performed on the remote atServer rather than on local storage. (When operations are performed locally, we depend on sync to get eventual consistency between local and remote.
    getter/setter pair
    rootDomain ↔ String
    Domain of the root server. Defaults to root.atsign.org
    getter/setter pair
    rootPort ↔ int
    Port of the root server. Defaults to 64
    getter/setter pair
    runtimeType → Type
    A representation of the runtime type of the object.
    no setterinherited
    sealsToKeyAlgorithms → List<String>
    The key-establishment algorithms this client will seal to, strongest first — which of a recipient's advertised keys it is willing to use, where keyEstablishmentAlgorithms is what this atSign publishes.
    final
    seedNamespaceKeys ↔ bool
    Whether this client mints and publishes namespace keys at start.
    getter/setter pair
    syncBatchSize ↔ int
    Number of keys to batch for sync to secondary server
    getter/setter pair
    syncPageLimit ↔ int
    The number of keys to pull from cloud secondary to local secondary in a single call.
    getter/setter pair
    syncRegex ↔ String?
    regex to perform sync
    getter/setter pair

    Methods

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    rolloutDifferencesFrom(AtClientPreference other) → List<String>
    Where other would change what a running client does — one line per differing axis, empty when the two are interchangeable.
    toString() → String
    A string representation of this object.
    inherited

    Operators

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