---
title: TKSmartCardPINFormat
framework: cryptotokenkit
role: symbol
role_heading: Class
path: cryptotokenkit/tksmartcardpinformat
---

# TKSmartCardPINFormat

The formatting properties for a PIN, such as character encoding and length constraints.

## Declaration

```swift
class TKSmartCardPINFormat
```

## Overview

Overview You typically interact with TKSmartCardPINFormat objects when calling the userInteractionForSecurePINChange(_:apdu:currentPINByteOffset:newPINByteOffset:) and userInteractionForSecurePINVerification(_:apdu:pinByteOffset:) methods on an instance of TKSmartCard.

## Topics

### Configuring PIN Formatting

- [charset](cryptotokenkit/tksmartcardpinformat/charset-swift.property.md)
- [encoding](cryptotokenkit/tksmartcardpinformat/encoding-swift.property.md)
- [minPINLength](cryptotokenkit/tksmartcardpinformat/minpinlength.md)
- [maxPINLength](cryptotokenkit/tksmartcardpinformat/maxpinlength.md)
- [pinBlockByteLength](cryptotokenkit/tksmartcardpinformat/pinblockbytelength.md)
- [pinJustification](cryptotokenkit/tksmartcardpinformat/pinjustification.md)
- [pinBitOffset](cryptotokenkit/tksmartcardpinformat/pinbitoffset.md)
- [pinLengthBitOffset](cryptotokenkit/tksmartcardpinformat/pinlengthbitoffset.md)
- [pinLengthBitSize](cryptotokenkit/tksmartcardpinformat/pinlengthbitsize.md)

### PIN Characteristics

- [TKSmartCardPINFormat.Charset](cryptotokenkit/tksmartcardpinformat/charset-swift.enum.md)
- [TKSmartCardPINFormat.Encoding](cryptotokenkit/tksmartcardpinformat/encoding-swift.enum.md)
- [TKSmartCardPINFormat.Justification](cryptotokenkit/tksmartcardpinformat/justification.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Managing User Interaction

- [userInteractionForSecurePINVerification(_:apdu:pinByteOffset:)](cryptotokenkit/tksmartcard/userinteractionforsecurepinverification(_:apdu:pinbyteoffset:).md)
- [userInteractionForSecurePINChange(_:apdu:currentPINByteOffset:newPINByteOffset:)](cryptotokenkit/tksmartcard/userinteractionforsecurepinchange(_:apdu:currentpinbyteoffset:newpinbyteoffset:).md)
- [TKSmartCardUserInteraction](cryptotokenkit/tksmartcarduserinteraction.md)
- [TKSmartCardUserInteractionForPINOperation](cryptotokenkit/tksmartcarduserinteractionforpinoperation.md)
- [TKSmartCardUserInteractionForSecurePINChange](cryptotokenkit/tksmartcarduserinteractionforsecurepinchange.md)
- [TKSmartCardUserInteractionForSecurePINVerification](cryptotokenkit/tksmartcarduserinteractionforsecurepinverification.md)
