Show / Hide Table of Contents

GetData Method

GetData()

Get the keys to create a secure session with a YubiHSM 2 device.

C#
public SessionKeys GetData()

Returns

SessionKeys

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

IYubiKeyResponseWithData<TData>.GetData()

Exceptions

Type Condition
InvalidOperationException

The Status is not equal to Success.

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.

In this article
Back to top Generated by DocFX