makeSecureTokenForExpirationDate(ofPersistableContentKey: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.
Declaration
func makeSecureTokenForExpirationDate(ofPersistableContentKey persistableContentKeyData: Data, completionHandler handler: @escaping @Sendable (Data?, (any Error)?) -> Void)func makeSecureTokenForExpirationDate(ofPersistableContentKey persistableContentKeyData: Data) async throws -> DataParameters
- persistableContentKeyData:
The previously created persistable content key data.
- handler:
A block called after the secure token is ready.
- secureTokenData
The new secure token.
- error
A parameter that holds the error object that explains the error. If no error occurred, the value of this parameter is
nil.