Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APDUResponse ¶
type APDUResponse struct { Cmd string `json:"apdu"` Response string `json:"response"` Valid bool `json:"isValid"` }
func NewAPDUResponse ¶
func NewAPDUResponse(apdu, response []byte) *APDUResponse
type Atr ¶
type Atr struct { ProtocolInterfaceA string `json:"protocolInterfaceA"` ProtocolInterfaceB string `json:"protocolInterfaceB"` ProtocolInterfaceC string `json:"protocolInterfaceC"` ProtocolInterfaceD string `json:"protocolInterfaceD"` HistoricalBytes string `json:"historicalBytes"` TckValid bool `json:"tckValid"` Raw string `json:"raw"` }
type DeviceInformation ¶
type DeviceInformation struct { EnclosureLocation interface{} `json:"enclosureLocation"` ID string `json:"id"` IsDefault bool `json:"isDefault"` IsEnabled bool `json:"isEnabled"` Kind int `json:"kind"` Name string `json:"name"` Pairing *DevicePairing `json:"pairing"` Properties *DeviceProperties `json:"properties"` }
func NewDeviceInfo ¶
func NewDeviceInfo(name, id string, isEnabled bool) *DeviceInformation
type DevicePairing ¶
type DeviceProperties ¶
type SmartcardStatus ¶
type SmartcardStatus struct { ATR *Atr `json:"atr"` StatusCode StatusCode `json:"statusCode"` Status string `json:"status"` }
func NewSmartCardStatus ¶
func NewSmartCardStatus(atr []byte, status StatusCode) *SmartcardStatus
type StatusCode ¶
type StatusCode int
const ( Ready StatusCode = 1 NotPresent StatusCode = -1 )
func (StatusCode) String ¶
func (s StatusCode) String() string
Click to show internal directories.
Click to hide internal directories.