Interface TKSmartCardTokenDriverDelegate

  • All Superinterfaces:
    TKTokenDriverDelegate

    public interface TKSmartCardTokenDriverDelegate
    extends TKTokenDriverDelegate
    TKSmartCardTokenDriverDelegate is used to implement creation of new token instance according to the SmartCard.
    • Method Detail

      • tokenDriverCreateTokenForSmartCardAIDError

        TKSmartCardToken tokenDriverCreateTokenForSmartCardAIDError​(TKSmartCardTokenDriver driver,
                                                                    TKSmartCard smartCard,
                                                                    NSData AID,
                                                                    org.moe.natj.general.ptr.Ptr<NSError> error)
        Called by system when new SmartCard is detected. You must override this method to create a new valid token TKSmartCardToken instance for @c smartCard.
        Parameters:
        smartCard - Target SmartCard.
        AID - ISO7816-4 AID (application ID) which is already selected on the card. If @c com.apple.ctk.aid is not present, no application is selected and this parameter is nil.
        error - Error details if operation fails.
        Returns:
        Newly created token instance representing @c smartCard. If an error occurs or driver decides that it does not want to handle specified smartCard as token, return nil.