다음을 통해 공유


ContentKey Class

Definition

Represnts the key used to encrypt the content. This class is abstract.

public abstract class ContentKey : Microsoft.Media.Drm.IEncryptionKeyInfo
type ContentKey = class
    interface IEncryptionKeyInfo
Public MustInherit Class ContentKey
Implements IEncryptionKeyInfo
Inheritance
ContentKey
Derived
Implements

Remarks

All content keys have a key identifier put into the header of the content that identifies which key was used to encrypt that content. The key identifier can also be used with a key seed value to generate the content key. This method of key generation means that the service does not have to store a large database of content keys. However, content keys can be generated using any cryptographically sound method. Service code should never have to deal with this class directly.

Constructors

ContentKey()

Properties

EncryptionType

Gets the ContentKeyType of the content key.

KeyId

Gets the key identifier of the content key.

KeyIdAsString

Gets the string representation of the key identifier of the content key.

KeyType

Gets the ContentKeyType of the content key.

Methods

GenerateKeySeed()

Generates a random key seed.

GetKeyData()

Gets the binary key data of the content key.

GetKeyIdAsString()

Returns the string representation of the key identifier of the content key. Returns the same value as KeyIdAsString

Applies to