Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrOpen = errors.New("open card for detailed filtering")
ErrOpen is a sentinel error returned by a Filter indicating that the filter requires a connection to the card for checking its predicate. This is usually the case if the predicate needs to exchange APDUs with the card rather than simply checking the readers name
Functions ¶
func IsFeitian ¶ added in v0.7.0
IsFeitian checks if the smart card is a FEITIAN key based on the name of the smart card reader.
func IsNitrokey ¶
IsNikrokey checks if the smart card is a Nitrokey based on the name of the smart card reader.
func IsNitrokey3 ¶
IsNikrokey3 checks if the smart card is a Nitrokey 3 based on the name of the smart card reader.
Types ¶
type Filter ¶
Filter is a predicate which evaluates whether a given reader/card matches a given condition.
func HasApplet ¶
HasApplet matches card which can select an applet with the given application identifier (AID).
func HasNameRegex ¶
HasName matches the name of the smart card reader against the provided regular expression.