Metadata class

Constructors

Metadata()

Properties

appMetadata ↔ AppMetadata?
Provider-owned crypto metadata serialized on the wire as appMetadata.
getter/setter pair
availableAt ↔ DateTime?
This is a derived field representing ttb in DateTime format
getter/setter pair
ccd ↔ bool?
CCD (Cascade Delete) means if a shared key is deleted, then the corresponding cached key will also be deleted
getter/setter pair
createdAt ↔ DateTime?
A date and time representing when the key is created
getter/setter pair
dataSignature ↔ String?
The dataSignature is used to verify authenticity of the public data.
getter/setter pair
encAlgo ↔ String?
The name of the algorithm used to encrypt the AtValue.
getter/setter pair
encKeyName ↔ String?
The name of the key used to encrypt the AtValue
getter/setter pair
encoding ↔ String?
If the AtValue is public data (i.e. it is not encrypted) and contains one or more new line (\n) characters, then the data will be encoded, and the encoding will be set to type of encoding (e.g. "base64")
getter/setter pair
expiresAt ↔ DateTime?
This is a derived field representing ttl in DateTime format
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
immutable ↔ bool
Immutable records may not be changed. They can be deleted, however deleting an immutable record will require the force: flag to be set when executing the delete verb.
getter/setter pair
isBinary ↔ bool
Determines whether a value is stored as binary data If value of the key is blob (images, videos etc), the binary data is encoded to text and isBinary is set to true.
getter/setter pair
isCached ↔ bool
When set to true, indicates the key is a cached key
getter/setter pair
isEncrypted ↔ bool
Is the value encrypted, or not
getter/setter pair
isHidden ↔ bool
When set to true, implies the key is a HiddenKey
getter/setter pair
isPublic ↔ bool
if isPublic is true, then atKey is accessible by all atSigns. if isPublic is false, then atKey is only accessible by either sharedWith or sharedBy
getter/setter pair
ivNonce ↔ String?
Initialization Vector or nonce used when the data was encrypted with the shared symmetric key.
getter/setter pair
namespaceAware ↔ bool
Indicates if the namespace should be appended to the key
getter/setter pair
pubKeyCS ↔ String?
Stores the checksum of the encryption public key used to encrypt the sharedKeyEnc. We use this to verify that the encryption key-pairs used to encrypt and decrypt the value are the same Will be marked as @Deprecated('Use pubKeyHash') once at_server and at_client_sdk fully support pubKeyHash
getter/setter pair
pubKeyHash ↔ PublicKeyHash?
Stores the hash of the encryption public key used to encrypt the sharedKeyEnc The hash is used to verify whether the current atsign's public key used for encrypting data by another atsign, has changed while decrypting the data
getter/setter pair
refreshAt ↔ DateTime?
This is a derived field representing ttr in DateTime format
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sharedKeyEnc ↔ String?
Stores the shared key, 'inline' and encrypted, in the metadata of the keystore entry for the encrypted data
getter/setter pair
sharedKeyStatus ↔ String?
Represents the status of the SharedKey
getter/setter pair
skeEncAlgo ↔ String?
The name of the algorithm used to encrypt the sharedKeyEnc
getter/setter pair
skeEncKeyName ↔ String?
When sharedKeyEnc is provided in the metadata, skeEncKeyName is the name of the public key which was used to encrypt it. skeEncKeyName is an abbreviation for the EncryptionKeyName used to encrypt the SharedKeyEncrypted.
getter/setter pair
ttb ↔ int?
Time in milliseconds after which the AtKey becomes active.
getter/setter pair
ttl ↔ int?
Time in milliseconds after which the AtKey expires.
getter/setter pair
ttr ↔ int?
Time in seconds another atServer may serve its cached copy of this AtKey before refreshing it: -1 means indefinitely, and null or 0 means the record is not to be cached.
getter/setter pair
updatedAt ↔ DateTime?
A date and time representing when the key is last modified
getter/setter pair

Methods

copy() → Metadata
A field-for-field copy of this metadata.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAtProtocolFragment() → String
Creates a fragment which can be included in any atProtocol commands which use Metadata - e.g. update, update:meta and notify
toJson() → Map
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

decodeAppMetadata(dynamic value) → AppMetadata?
encodeAppMetadata(AppMetadata appMetadata) → String
fromJson(Map json) → Metadata