Android.Media.MediaDrm.GetCryptoSession Method
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 MediaDrm.getKeyRequest(byte[], byte[], java.lang.String, int, java.util.HashMap<java.lang.String, java.lang.String>) and MediaDrm.ProvideKeyResponse(Byte[], System.Byte[]) using a session key server.

Syntax

[Android.Runtime.Register("getCryptoSession", "([BLjava/lang/String;Ljava/lang/String;)Landroid/media/MediaDrm$CryptoSession;", "")]
public MediaDrm.CryptoSession GetCryptoSession (byte[] sessionId, string cipherAlgorithm, string macAlgorithm)

Parameters

sessionId
the session ID for the session containing keys to be used for encrypt, decrypt, sign and/or verify
cipherAlgorithm
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
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".

The list of supported algorithms for a DRM engine plugin can be obtained using the method MediaDrm.GetPropertyString(string) with the property name "algorithms".

Returns

Documentation for this section has not yet been entered.

Remarks

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 MediaDrm.getKeyRequest(byte[], byte[], java.lang.String, int, java.util.HashMap<java.lang.String, java.lang.String>) and MediaDrm.ProvideKeyResponse(Byte[], System.Byte[]) using a session key server.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18