<!--
{
  "availability" : [
    "iOS: 12.5.0 - 27.0.0",
    "iPadOS: 12.5.0 - 27.0.0",
    "macCatalyst: 12.5.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "ExposureNotification",
  "identifier" : "/documentation/ExposureNotification/ENTemporaryExposureKey",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Exposure Notification"
    ],
    "preciseIdentifier" : "c:objc(cs)ENTemporaryExposureKey"
  },
  "title" : "ENTemporaryExposureKey"
}
-->

# ENTemporaryExposureKey

The key used to generate rolling proximity identifiers.

```
class ENTemporaryExposureKey
```

## Overview> Important:
> This class is available in iOS 12.5, and in iOS 13.5 and later.

Upon a positive diagnosis, the user is allowed to submit their temporary exposure keys to their Health Authority server as diagnosis keys. Use [`getDiagnosisKeys(completionHandler:)`](/documentation/ExposureNotification/ENManager/getDiagnosisKeys(completionHandler:)) to obtain the user’s diagnosis keys for submission.

## Topics

### Exposure Criteria

[`transmissionRiskLevel`](/documentation/ExposureNotification/ENTemporaryExposureKey/transmissionRiskLevel)

The risk of transmission associated with the person a key came from.

[`rollingPeriod`](/documentation/ExposureNotification/ENTemporaryExposureKey/rollingPeriod)

The length of time that this key is valid.

[`keyData`](/documentation/ExposureNotification/ENTemporaryExposureKey/keyData)

The temporary exposure key information.

[`rollingStartNumber`](/documentation/ExposureNotification/ENTemporaryExposureKey/rollingStartNumber)

A number that indicates when a key’s rolling period started.

[`ENIntervalNumber`](/documentation/ExposureNotification/ENIntervalNumber)

A number assigned to each 10-minute window shared between all devices participating in the protocol.



---

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)