---
title: apduTemplate
framework: cryptotokenkit
role: symbol
role_heading: Instance Property
path: cryptotokenkit/tktokensmartcardpinauthoperation/apdutemplate
---

# apduTemplate

The template into which the PIN is filled in. nil by default.

## Declaration

```swift
var apduTemplate: Data? { get set }
```

## Discussion

Discussion If nil, the system will not attempt to authenticate by sending the formatted APDU to the Smart Card. Instead, the token itself is expected to perform the authentication. You are encouraged to provide an APDU template, if possible, as it allows the use of a hardware interface for secure PIN entry, provided one exists.

## See Also

### Configuring the Operation

- [pinFormat](cryptotokenkit/tktokensmartcardpinauthoperation/pinformat.md)
- [pinByteOffset](cryptotokenkit/tktokensmartcardpinauthoperation/pinbyteoffset.md)
- [smartCard](cryptotokenkit/tktokensmartcardpinauthoperation/smartcard.md)
