MediaDrm.GetCryptoSession(Byte[], String, String) Method
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.
Obtain a CryptoSession object which can be used to encrypt, decrypt,
sign and verify messages or data using the session keys established
for the session using methods #getKeyRequest
and
#provideKeyResponse
using a session key server.
[Android.Runtime.Register("getCryptoSession", "([BLjava/lang/String;Ljava/lang/String;)Landroid/media/MediaDrm$CryptoSession;", "")]
public Android.Media.MediaDrm.CryptoSession? GetCryptoSession (byte[] sessionId, string cipherAlgorithm, string macAlgorithm);
[<Android.Runtime.Register("getCryptoSession", "([BLjava/lang/String;Ljava/lang/String;)Landroid/media/MediaDrm$CryptoSession;", "")>]
member this.GetCryptoSession : byte[] * string * string -> Android.Media.MediaDrm.CryptoSession
Parameters
- sessionId
- Byte[]
the session ID for the session containing keys to be used for encrypt, decrypt, sign and/or verify
- cipherAlgorithm
- String
the algorithm to use for encryption and decryption ciphers. The algorithm string conforms to JCA Standard Names for Cipher Transforms and is case insensitive. For example "AES/CBC/NoPadding".
- macAlgorithm
- String
the algorithm to use for sign and verify
The algorithm string conforms to JCA Standard Names for Mac
Algorithms and is case insensitive. For example "HmacSHA256".
<p>
The list of supported algorithms for a DRM plugin can be obtained
using the method #getPropertyString
with the property name
"algorithms".
Returns
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.