GetKeyRequest | ( | ... | ) |
Function: GetKeyRequest(init, mimeType, offlineKey, optionalParameters)
Generate a key request, used for request/response exchange between the app and a license server to obtain or release keys used to decrypt encrypted content. After the app has received the key request response from the license server, it should deliver to the response to the DRM instance using the method ProvideKeyResponse, to activate the keys.
init | byte - Initialization bytes container-specific data, its meaning is interpreted based on the mime type provided in the mimeType parameter. It could contain, for example, the content ID, key ID or other data required in generating the key request. |
mimeType | string - Type of media which is exchanged (e.g. "application/xml", "video/mp4") |
offlineKey | bool - Specifies the type of the request. The request may be to acquire keys for Streaming or Offline content |
optionalParameters | [opt] map - Will be included in the key request message to allow a client application to provide additional message parameters to the server |
GetPropertyString | ( | ... | ) |
Function: GetPropertyString(name)
Name | string - Name of the property to query |
ProvideKeyResponse | ( | ... | ) |
Function: ProvideKeyResponse(response)
When a key response is received from the license server, must be sent to the DRM instance by using provideKeyResponse. See also GetKeyRequest.
response | byte - Key data returned from the license server |
RemoveKeys | ( | ... | ) |
Function: RemoveKeys()
RestoreKeys | ( | ... | ) |
Function: RestoreKeys(keySetId)
keySetId | string - Identifies the saved key set to restore. This value must never be null. |
SetPropertyString | ( | ... | ) |
Function: SetPropertyString(name, value)
name | string - Name of the property. This value must never be null. |
value | string - Value of the property to set. This value must never be null. |
Decrypt | ( | ... | ) |
Function: Decrypt(cipherKeyId, input, iv)
cipherKeyId | byte - Encryption key id (provided from a service handshake) |
input | byte - Cipher text to decrypt |
iv | byte - Initialization vector of cipher text |
Encrypt | ( | ... | ) |
Function: Encrypt(cipherKeyId, input, iv)
cipherKeyId | byte - Encryption key id (provided from a service handshake) |
input | byte - Encrypted text |
iv | byte - Initialization vector of encrypted text |
Sign | ( | ... | ) |
Function: Sign(macKeyId, message)
macKeyId | byte - HMAC key id (provided from a service handshake) |
message | byte - Message text on which to base the signature |
Verify | ( | ... | ) |
Function: Verify(macKeyId, message, signature)
macKeyId | byte - HMAC key id (provided from a service handshake) |
message | byte - Message text on which the signature is based |
signature | byte - The signature to verify |