|Type||Topic||Plugin||Version||macOS||Windows||Linux||Console & Web||iOS|
|class||SmartCard||MBS Mac64bit Plugin||18.5||Yes||No||No||Yes, macOS only||No|
This class provides an interface for managing sessions with a smart card, transmitting requests, and facilitating user interaction.
You can create a TKSmartCardMBS object when a smart card is inserted into a slot, by calling the makeSmartCard method on the corresponding TKSmartCardSlotMBS object. To start communicating with the smart card, call the beginSession method on the TKSmartCardMBS object. Once an exclusive session has been established, you transmit data using the transmitRequest:reply: method. After you’ve finished communicating with a smart card, you call the endSession method.
If the smart card is physically removed from its slot, the session object becomes invalid, and any further calls to transmitRequest will return an error.
- 5 events
- event beginSessionCompleted(success as Boolean, error as NSErrorMBS, tag as Variant)
- event inSession(byref error as NSErrorMBS, tag as Variant) as Boolean
- event sendInsCompleted(ins as UInt8, p1 as UInt8, p2 as UInt8, requestData as MemoryBlock, le as integer, replyData as MemoryBlock, sw as UInt16, error as NSErrorMBS, tag as Variant)
- event transmitRequestCompleted(request as MemoryBlock, response as MemoryBlock, error as NSErrorMBS, tag as Variant)
- event ValidChanged
- 10 properties
- property AllowedProtocols as Integer
- property cla as Integer
- property Context as Variant
- property CurrentProtocol as Integer
- property Handle as Integer
- property Sensitive as Boolean
- property Slot as TKSmartCardSlotMBS
- property UseCommandChaining as Boolean
- property UseExtendedLength as Boolean
- property Valid as Boolean
- 16 methods
- method beginSession(tag as variant = nil)
- method beginSessionSync(byref error as NSErrorMBS) as Boolean
- method beginSessionWithDelegate(handler as beginSessionCompletedDelegateMBS, tag as variant = nil)
- method Constructor
- method Destructor
- method endSession
- method inSession(byref error as NSErrorMBS, tag as variant = nil) as boolean
- method readFileWithDelegate(FileName as MemoryBlock, handler as readFileCompletedDelegateMBS, tag as variant = nil)
- method sendIns(ins as UInt8, p1 as UInt8, p2 as UInt8, requestData as MemoryBlock, le as Integer = 0, byref sw as Uint16, byref error as NSErrorMBS) as Memoryblock
- method sendIns(ins as UInt8, p1 as UInt8, p2 as UInt8, requestData as MemoryBlock, le as Integer = 0, tag as variant = nil)
- method SetDelegate
- method transmitRequest(request as MemoryBlock, tag as variant = nil)
- method transmitRequestSync(request as MemoryBlock, byref response as MemoryBlock, byref error as NSErrorMBS)
- method transmitRequestWithDelegate(request as MemoryBlock, handler as transmitRequestCompletedDelegateMBS, tag as variant = nil)
- method userInteractionForSecurePINChange(PINFormat as TKSmartCardPINFormatMBS, APDU as MemoryBlock, currentPINByteOffset as Integer, newPINByteOffset as Integer) as TKSmartCardUserInteractionForSecurePINChangeMBS
- method userInteractionForSecurePINVerification(PINFormat as TKSmartCardPINFormatMBS, APDU as MemoryBlock, PINByteOffset as Integer) as TKSmartCardUserInteractionForSecurePINVerificationMBS
- 3 delegates
- delegate beginSessionCompletedDelegateMBS(success as Boolean, error as NSErrorMBS, tag as Variant)
- delegate readFileCompletedDelegateMBS(FileName as MemoryBlock, Content as MemoryBlock, error as NSErrorMBS, tag as Variant)
- delegate transmitRequestCompletedDelegateMBS(request as MemoryBlock, response as MemoryBlock, error as NSErrorMBS, tag as Variant)
- 14 constants
Any available transmission protocols.
No transmission protocols.
T=0 transmission protocol.
T=1 transmission protocol.
T=15 transmission protocol.
Authentication is needed.
An invalid parameter was provided.
The operation was canceled by the user.
A communication error occurred.
The data was corrupted.
The functionality is not implemented.
The object was not found.
The token was not found.
This class has no sub classes.
Some methods using this class:
- TKSmartCardSlotMBS.makeSmartCard as TKSmartCardMBS
- TKSmartCardTokenMBS.Constructor(smartCard as TKSmartCardMBS, AID as MemoryBlock, instanceID as String, tokenDriver as TKSmartCardTokenDriverMBS)
Some properties using for this class:
- TKSmartCardTokenSessionMBS.smartCard as TKSmartCardMBS
- TKTokenSmartCardPINAuthOperationMBS.smartCard as TKSmartCardMBS
Some events for this class:
- TKTokenDriverMBS.createTokenForSmartCard(smartCard as TKSmartCardMBS, AID as MemoryBlock, byref error as NSErrorMBS) as TKSmartCardTokenMBS
The items on this page are in the following plugins: MBS Mac64bit Plugin.
MBS Xojo PDF Plugins