Table of Contents

Class ResponseApdu

Namespace
Yubico.Core.Iso7816
Assembly
Yubico.Core.dll

Represents an ISO 7816 application response.

public class ResponseApdu
Inheritance
object
ResponseApdu

Constructors

ResponseApdu(byte[])

Initializes a new instance of the ResponseApdu class.

public ResponseApdu(byte[] data)

Parameters

data byte[]

The raw data returned by the ISO 7816 smart card.

ResponseApdu(byte[], short)

Initializes a new instance of the ResponseApdu class.

public ResponseApdu(byte[] dataWithoutSW, short sw)

Parameters

dataWithoutSW byte[]

The raw data returned by the ISO 7816 smart card without the trailing status bytes.

sw short

The status word, 'SW', for the APDU response.

Properties

Data

Gets the data part of the response.

public ReadOnlyMemory<byte> Data { get; }

Property Value

ReadOnlyMemory<byte>

The raw bytes not including the ending status word.

SW

The status word (two byte) code which represents the overall result of a CCID interaction. The most common value is 0x9000 which represents a successful result.

public short SW { get; }

Property Value

short

SW1

A convenience property accessor for the high byte of SW

public byte SW1 { get; }

Property Value

byte

SW2

A convenience property accessor for the low byte of SW

public byte SW2 { get; }

Property Value

byte