KeyExchangeRight Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
KeyExchangeRight(KeyExchangeAlgorithm, Byte[]) |
Initializes a new instance of the KeyExchangeRight class. |
KeyExchangeRight(UInt32, Byte[]) |
Initializes a new instance of the KeyExchangeRight class. |
KeyExchangeRight(KeyExchangeAlgorithm, Byte[])
Initializes a new instance of the KeyExchangeRight class.
public KeyExchangeRight (Microsoft.Media.Drm.KeyExchangeAlgorithm algorithm, byte[] key);
new Microsoft.Media.Drm.KeyExchangeRight : Microsoft.Media.Drm.KeyExchangeAlgorithm * byte[] -> Microsoft.Media.Drm.KeyExchangeRight
Public Sub New (algorithm As KeyExchangeAlgorithm, key As Byte())
Parameters
- algorithm
- KeyExchangeAlgorithm
The algorithm the client is allowed to perform using the key.
- key
- Byte[]
The raw key. Its required size depends on algorithm
; see KeyExchangeAlgorithm for details.
Exceptions
The key
does not match the length required by the algorithm
.
Remarks
KeyExchangeAlgorithms should be used to ensure that the client supports the value you intend specify. License generation will throw an exception if the client does not support the specified value.
Applies to
KeyExchangeRight(UInt32, Byte[])
Initializes a new instance of the KeyExchangeRight class.
public KeyExchangeRight (uint algorithm, byte[] key);
new Microsoft.Media.Drm.KeyExchangeRight : uint32 * byte[] -> Microsoft.Media.Drm.KeyExchangeRight
Public Sub New (algorithm As UInteger, key As Byte())
Parameters
- algorithm
- UInt32
The algorithm the client is allowed to perform using the key.
- key
- Byte[]
The raw key. Its size depends on algorithm.
Exceptions
The key
does not match the length required by the algorithm
. Only thrown for values defined by KeyExchangeAlgorithm.
Remarks
This constructor is provided for compatibility with future porting kits such that an update to the PlayReady Server SDK is not required to take advantage of new cryptographic algorithms, but KeyExchangeRight(KeyExchangeAlgorithm, Byte[]) is preferred when the desired algorithm is available in KeyExchangeAlgorithm. KeyExchangeAlgorithms should be used to ensure that the client supports the value you intend specify. License generation will throw an exception if the client does not support the specified value.