---
title: AVContentKeyRequest
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avcontentkeyrequest
---

# AVContentKeyRequest

An object that encapsulates information about a content decryption key request issued from a content key session object.

## Declaration

```swift
class AVContentKeyRequest
```

## Topics

### Getting content key request data

- [makeStreamingContentKeyRequestData(forApp:contentIdentifier:options:completionHandler:)](avfoundation/avcontentkeyrequest/makestreamingcontentkeyrequestdata(forapp:contentidentifier:options:completionhandler:).md)
- [AVContentKeyRequestProtocolVersionsKey](avfoundation/avcontentkeyrequestprotocolversionskey.md)
- [AVContentKeyRequestRequiresValidationDataInSecureTokenKey](avfoundation/avcontentkeyrequestrequiresvalidationdatainsecuretokenkey.md)
- [AVContentKeyRequestRandomDeviceIdentifierSeedKey](avfoundation/avcontentkeyrequestrandomdeviceidentifierseedkey.md)
- [AVContentKeyRequestShouldRandomizeDeviceIdentifierKey](avfoundation/avcontentkeyrequestshouldrandomizedeviceidentifierkey.md)

### Responding to the content key request

- [processContentKeyResponse(_:)](avfoundation/avcontentkeyrequest/processcontentkeyresponse(_:).md)
- [processContentKeyResponseError(_:)](avfoundation/avcontentkeyrequest/processcontentkeyresponseerror(_:).md)

### Getting content key request properties

- [identifier](avfoundation/avcontentkeyrequest/identifier.md)
- [originatingRecipient](avfoundation/avcontentkeyrequest/originatingrecipient.md)
- [canProvidePersistableContentKey](avfoundation/avcontentkeyrequest/canprovidepersistablecontentkey.md)
- [error](avfoundation/avcontentkeyrequest/error.md)
- [initializationData](avfoundation/avcontentkeyrequest/initializationdata.md)
- [renewsExpiringResponseData](avfoundation/avcontentkeyrequest/renewsexpiringresponsedata.md)
- [status](avfoundation/avcontentkeyrequest/status-swift.property.md)
- [AVContentKeyRequest.Status](avfoundation/avcontentkeyrequest/status-swift.enum.md)

### Inspecting a request

- [contentKey](avfoundation/avcontentkeyrequest/contentkey.md)
- [contentKeySpecifier](avfoundation/avcontentkeyrequest/contentkeyspecifier.md)
- [options](avfoundation/avcontentkeyrequest/options.md)
- [AVContentKeyRequest.RetryReason](avfoundation/avcontentkeyrequest/retryreason.md)

### Instance Properties

- [canBeFulfilledWithAdvisoryKey](avfoundation/avcontentkeyrequest/canbefulfilledwithadvisorykey.md)

### Instance Methods

- [makeOptionalStreamingContentKeyRequestData(forApp:contentIdentifier:options:completionHandler:)](avfoundation/avcontentkeyrequest/makeoptionalstreamingcontentkeyrequestdata(forapp:contentidentifier:options:completionhandler:).md)
- [respondByRequestingPersistableContentKeyRequest()](avfoundation/avcontentkeyrequest/respondbyrequestingpersistablecontentkeyrequest()-1ci4q.md)
- [respondByRequestingPersistableContentKeyRequestAndReturnError()](avfoundation/avcontentkeyrequest/respondbyrequestingpersistablecontentkeyrequest()-7i2pw.md)

## Relationships

### Inherits From

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

### Inherited By

- [AVPersistableContentKeyRequest](avfoundation/avpersistablecontentkeyrequest.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)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### FairPlay streaming

- [AVContentKeySession](avfoundation/avcontentkeysession.md)
- [AVContentKeySessionDelegate](avfoundation/avcontentkeysessiondelegate.md)
- [AVContentKey](avfoundation/avcontentkey.md)
- [AVContentKeySpecifier](avfoundation/avcontentkeyspecifier.md)
- [AVPersistableContentKeyRequest](avfoundation/avpersistablecontentkeyrequest.md)
- [AVContentKeyResponse](avfoundation/avcontentkeyresponse.md)
- [AVExternalContentProtectionStatus](avfoundation/avexternalcontentprotectionstatus.md)
- [AVSampleBufferAttachContentKey(_:_:_:)](avfoundation/avsamplebufferattachcontentkey(_:_:_:).md)
