Class

AVContentKeySession

An object used to create and track decryption keys for media data.

Declaration

@interface AVContentKeySession : NSObject

Topics

Creating New Content Key Sessions

+ contentKeySessionWithKeySystem:

Creates a content key session to manage a collection of content decryption keys.

+ contentKeySessionWithKeySystem:storageDirectoryAtURL:

Creates a content key session to manage a collection of content decryption keys; points to a directory that stores abnormal session termination reports.

keySystem

The type of key system used to retrieve keys.

AVContentKeySystem

A key-delivery method for a content key session.

Initializing the Content Key Request Process

- setDelegate:queue:

Sets the receiver's delegate and indicates the dispatch queues used.

delegate

The delegate for the receiver.

AVContentKeySessionDelegate

The protocol you implement to handle content key requests.

delegateQueue

The dispatch queue that invokes delegate callbacks.

- addContentKeyRecipient:

Tells the receiver that the specified recipient should have access to the decryption keys loaded with the session.

contentKeyRecipients

An array of content key recipients.

AVContentKeyRecipient

A protocol for requiring decryption keys for media data.

- processContentKeyRequestWithIdentifier:initializationData:options:

Tells the receiver to start loading the content decryption key with the specified identifier and initialization data.

Updating Content Key Requests

- renewExpiringResponseDataForContentKeyRequest:

Tells the receiver that previously provided response data for a content key request is about to expire.

- makeSecureTokenForExpirationDateOfPersistableContentKey:completionHandler:

Creates a secure server playback context that the client sends to the key server to get an expiration date for the given persistable content key data.

contentProtectionSessionIdentifier

The identifier for the current content protection session.

Ending a Content Key Request Process

- expire

Tells the receiver that the session expired as the result of normal, intentional processes.

- removeContentKeyRecipient:

Tells the receiver to remove the specified recipient.

AVContentKeyRecipient

A protocol for requiring decryption keys for media data.

Handling Expired Session Reports

+ pendingExpiredSessionReportsWithAppIdentifier:storageDirectoryAtURL:

Returns the expired session reports for content key sessions created with the specified app identifier.

storageURL

A URL that points to a writable storage directory.

Relationships

Inherits From

See Also

Content Key Decryption

AVContentKeyRequest

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

AVContentKeyResponse

An object that encapsulates information about a response to a content decryption key request.

AVPersistableContentKeyRequest

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