Interface ICardCommand
Interface for generic C-APDU, ie command to send to a smartcard.
Namespace: WSCT.Core.APDU
Assembly: WSCT.dll
Syntax
public interface ICardCommand
Properties
| Improve this Doc View SourceBinaryCommand
Raw binary representation of the C-APDU.
Declaration
byte[] BinaryCommand { get; }
Property Value
| Type | Description |
|---|---|
| System.Byte[] |
StringCommand
Raw string representation (hexadecimal values) of the C-APDU.
Declaration
string StringCommand { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceParse(Byte[])
Parses a raw command cAPDU to send to the smartcard.
Declaration
ICardCommand Parse(byte[] cAPDU)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | cAPDU | C-APDU to send to the smartcard. |
Returns
| Type | Description |
|---|---|
| ICardCommand | An instance of the ICardResponse representation of the R-APDU (this). |
Parse(String)
Parses part of a raw hexa string command cAPDU to send to the smartcard.
Declaration
ICardCommand Parse(string cAPDU)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | cAPDU | C-APDU to send to the smartcard, represented by a string of hexadecimal values. |
Returns
| Type | Description |
|---|---|
| ICardCommand | An instance of the ICardCommand representation of the C-APDU (this). |