---
title: "init(forKeySystem:identifier:options:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avcontentkeyspecifier/init(forkeysystem:identifier:options:)"
---

# init(forKeySystem:identifier:options:)

Creates a content key specifier.

## Declaration

```swift
init(forKeySystem keySystem: AVContentKeySystem, identifier contentKeyIdentifier: Any, options: [String : Any] = [:])
```

## Parameters

- `keySystem`: The key system to use to generate content keys.
- `contentKeyIdentifier`: The container and protocol-specific key identifier.
- `options`: Additional information necessary to obtain the key. Pass nil to indicate no additional options.
