---
title: "init(fairPlayStreamingKeyResponseData:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avcontentkeyresponse/init(fairplaystreamingkeyresponsedata:)"
---

# init(fairPlayStreamingKeyResponseData:)

Creates a content key response with an encrypted key response data blob when FairPlay Streaming is the key delivery method.

## Declaration

```swift
convenience init(fairPlayStreamingKeyResponseData keyResponseData: Data)
```

## Parameters

- `keyResponseData`: The key data from the FairPlay Streaming key server.

## Return Value

Return Value Returns a new AVContentKeyResponse object to decrypt content.

## Discussion

Discussion Use the results of this initializer when the content key session creates a key request using the fairPlayStreaming parameter. The results are then passed to the processContentKeyResponse(_:) method to supply the decrypter with key data.

## See Also

### Creating new content key responses

- [init(clearKeyData:initializationVector:)](avfoundation/avcontentkeyresponse/init(clearkeydata:initializationvector:).md)
- [init(authorizationTokenData:)](avfoundation/avcontentkeyresponse/init(authorizationtokendata:).md)
