<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKTLVRecord",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKTLVRecord"
  },
  "title" : "TKTLVRecord"
}
-->

# TKTLVRecord

The base class encapsulating a Tag-Length-Value record.

```
class TKTLVRecord
```

## Overview

The CryptoTokenKit framework provides the following concrete subclasses for various TLV record encodings:

- [`TKBERTLVRecord`](/documentation/CryptoTokenKit/TKBERTLVRecord) for BER-TLV encoding rules
- [`TKSimpleTLVRecord`](/documentation/CryptoTokenKit/TKSimpleTLVRecord) for Simple-TLV encoding according to ISO 7816-4
- [`TKCompactTLVRecord`](/documentation/CryptoTokenKit/TKCompactTLVRecord) for Compact-TLV encoding according to ISO 7816-4

## Topics

### Creating Records

[`+  sequenceOfRecordsFromData:`](/documentation/CryptoTokenKit/TKTLVRecord/sequenceOfRecords(from:))

Creates and returns an array of TLV records from the specified data.

[`+  recordFromData:`](/documentation/CryptoTokenKit/TKTLVRecord/init(from:))

Creates and returns a TLV record from by parsing the specified data.

### Accessing the Tag Field

[`tag`](/documentation/CryptoTokenKit/TKTLVRecord/tag)

The tag field of the record.

[`TKTLVTag`](/documentation/CryptoTokenKit/TKTLVTag)

The type used to identify TLV format tags.

### Accessing the Value Field

[`value`](/documentation/CryptoTokenKit/TKTLVRecord/value)

The value field of the record.

### Accessing Record Data

[`data`](/documentation/CryptoTokenKit/TKTLVRecord/data)

The record data, including the tag, length, and value fields.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherited By

[`TKSimpleTLVRecord`](/documentation/CryptoTokenKit/TKSimpleTLVRecord)

[`TKCompactTLVRecord`](/documentation/CryptoTokenKit/TKCompactTLVRecord)

[`TKBERTLVRecord`](/documentation/CryptoTokenKit/TKBERTLVRecord)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)