How To Get Session Key After Successful SAM Authentication

How can I get the session key generated after a successful SAM authentication?

 

Is there an API for this under the MifareSam class?

 

The command SAM_AuthenticateHost (INS=A4h) is used to run a

mutual authentication between SAM and host system. It consists of three parts.

Such an authentication proves that both the SAM and the host contains the same

keys. At the end of the authentication, session keys for secure messaging are

generated.

 

I believe I need that key to make a successful MifareDesfire authentication. As a data input in dataInput for the SamDiverseParams?

 

Help is very much appreciated. Thanks.