SignatureRecord class
A NDEF Signature Record used to protect the integrity and authenticity of NDEF Messages.
- Inheritance
-
- Object
- NDEFRecord
- WellKnownRecord
- SignatureRecord
Constructors
-
SignatureRecord({String? signatureType, String hashType = "SHA-256", Uint8List? signature, String? signatureURI = "", String certificateFormat = "X.509", List<
Uint8List> ? certificateStore, String? certificateURI = ""}) - Constructs a SignatureRecord with signature and certificate information.
Properties
- basicInfoString → String
-
Gets a basic information string containing ID, TNF, and type.
no setterinherited
- certificateFormat ↔ String
-
Gets the certificate format string.
getter/setter pair
- certificateFormatIndex ↔ int
-
Internal index for certificate format.
getter/setter pair
-
certificateStore
→ List<
Uint8List> -
Gets a copy of the certificate store.
no setter
- certificateURI ↔ String?
-
URI for the certificate.
getter/setter pair
- decodedType ↔ String
-
Gets the type as a decoded UTF-8 string.
getter/setter pairinherited-setteroverride-getter
- encodedType ↔ Uint8List?
-
The raw encoded type bytes.
getter/setter pairinherited
- flags ↔ NDEFRecordFlags
-
The flags header of the record.
getter/setter pairinherited
- fullType → String?
-
Gets the full qualified type including TNF prefix.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hashType ↔ String
-
Gets the hash type string.
getter/setter pair
- hashTypeIndex ↔ int
-
Internal index for hash type.
getter/setter pair
- id ↔ Uint8List?
-
The ID of the record (optional).
getter/setter pairinherited
- idString ↔ String
-
Hex String of id, return "(empty)" when the id bytes is null
getter/setter pairinherited
- maxPayloadLength → int?
-
Gets the maximum payload length for this record instance.
no setterinherited
- minPayloadLength → int
-
Gets the minimum payload length for this record instance.
no setteroverride
- payload ↔ Uint8List
-
The payload data of the record.
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature ↔ Uint8List
-
The signature bytes.
getter/setter pair
- signatureType ↔ String?
-
Gets the signature type string.
getter/setter pair
- signatureTypeIndex ↔ int
-
Internal index for signature type.
getter/setter pair
- signatureURI ↔ String?
-
URI for the signature.
getter/setter pair
- tnf ↔ TypeNameFormat
-
Gets the Type Name Format of this record.
getter/setter pairinherited
- type ↔ Uint8List?
-
Gets the type as raw bytes.
getter/setter pairinherited
Methods
-
addCertificateStore(
Uint8List certificate) → void - Adds a certificate to the certificate store.
-
encode(
) → Uint8List -
Encode this NDEFRecord to raw byte data.
inherited
-
isEqual(
NDEFRecord other) → bool -
Checks if this record is equal to
otherby comparing TNF, type, ID, and payload.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
certificateFormatMap
↔ List<
String> -
Map of supported certificate formats.
getter/setter pair
-
hashTypeMap
↔ List<
String> -
Map of supported hash types.
getter/setter pair
-
signatureTypeMap
↔ List<
String?> -
Map of supported signature types.
getter/setter pair
Constants
- classMinPayloadLength → const int
- classType → const String
- classVersion → const int
- The signature record version.