Package apple.cryptotokenkit.protocol
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable TKSmartCardTokentokenDriverCreateTokenForSmartCardAIDError(@NotNull TKSmartCardTokenDriver driver, @NotNull TKSmartCard smartCard, @Nullable NSData AID, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Called by system when new SmartCard is detected.-
Methods inherited from interface apple.cryptotokenkit.protocol.TKTokenDriverDelegate
tokenDriverTerminateToken, tokenDriverTokenForConfigurationError
-
-
-
-
Method Detail
-
tokenDriverCreateTokenForSmartCardAIDError
@Nullable @Nullable TKSmartCardToken tokenDriverCreateTokenForSmartCardAIDError(@NotNull @NotNull TKSmartCardTokenDriver driver, @NotNull @NotNull TKSmartCard smartCard, @Nullable @Nullable NSData AID, @Nullable @Nullable 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.
-
-