---
title: ENTemporaryExposureKey
framework: exposurenotification
role: symbol
role_heading: Class
path: exposurenotification/entemporaryexposurekey
---

# ENTemporaryExposureKey

The key used to generate rolling proximity identifiers.

## Declaration

```swift
class ENTemporaryExposureKey
```

## Overview

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:) to obtain the user’s diagnosis keys for submission.

## Topics

### Exposure Criteria

- [transmissionRiskLevel](exposurenotification/entemporaryexposurekey/transmissionrisklevel.md)
- [rollingPeriod](exposurenotification/entemporaryexposurekey/rollingperiod.md)
- [keyData](exposurenotification/entemporaryexposurekey/keydata.md)
- [rollingStartNumber](exposurenotification/entemporaryexposurekey/rollingstartnumber.md)
- [ENIntervalNumber](exposurenotification/enintervalnumber.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

### Obtaining Exposure Keys

- [getDiagnosisKeys(completionHandler:)](exposurenotification/enmanager/getdiagnosiskeys(completionhandler:).md)
- [getTestDiagnosisKeys(completionHandler:)](exposurenotification/enmanager/gettestdiagnosiskeys(completionhandler:).md)
