GetData Method
GetData()
Get the keys to create a secure session with a YubiHSM 2 device.
C#
public SessionKeys GetData()
Returns
Session keys are used to establish an encrypted and authenticated session with a YubiHSM 2 device. The secure session is based on the Global Platform Secure Channel Protocol '03' (SCP03).
Implements
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | |
MalformedYubiKeyResponseException | Invalid response data length. |
Remarks
If the method cannot return the data, it will throw an exception. This happens when the Status property indicates an error, or the data returned from the YubiKey was malformed or incomplete.