Platforms to show: All Mac Windows Linux Cross-Platform
SmartCard
PCSC interface to SmartCard readers.
- Classes
- class SmartCardContextMBS
- method Cancel
- method Connect(reader as string, ShareMode as UInt32, PreferredProtocols as UInt32) as SmartCardMBS
- method Constructor
- method IsValid as boolean
- method ReaderGroups as string()
- method Readers as string()
- method Readers(ReaderGroups() as string) as string()
- shared property Available as Boolean
- property Handle as Integer
- property Lasterror as Integer
- class SmartCardMBS
- method BeginTransaction
- method CancelTransaction
- method Constructor
- method Control(ControlCode as Integer, input as ptr, inputLength as UInt32, output as ptr, byref outputLength as UInt32)
- method Disconnect(Disposition as Integer = 0)
- method EndTransaction(Disposition as Integer = 0)
- method GetAttrib(AttrId as UInt32) as Memoryblock
- method ReadFile(FileID as MemoryBlock) as MemoryBlock
- method Reconnect(ShareMode as UInt32, PreferredProtocols as UInt32, Initialization as UInt32)
- method SetAttrib(AttrId as UInt32, mem as Memoryblock)
- shared method SplitValues(Data as MemoryBlock) as Dictionary
- method Status(byref Reader as string, byref State as Integer, byref Protocol as Integer, byref CardID as string)
- method Status(byref State as Integer, byref Protocol as Integer, byref CardID as string)
- method Transmit(ioSendPci as Ptr, SendBuffer as ptr, SendLength as UInt32, ioRecvPci as ptr, RecvBuffer as Ptr, byref RecvLength as UInt32)
- property ActiveProtocol as Integer
- property Handle as Integer
- property Lasterror as Integer
- class TKBERTLVRecordMBS
- method Constructor(tag as UInt64, data as MemoryBlock)
- method Constructor(tag as UInt64, records() as TKTLVRecordMBS)
- shared method dataForTag(tag as UInt64) as MemoryBlock
- class TKCompactTLVRecordMBS
- method Constructor(tag as integer, data as MemoryBlock)
- class TKSimpleTLVRecordMBS
- method Constructor(tag as integer, data as MemoryBlock)
- class TKSmartCardATRInterfaceGroupMBS
- method Constructor
- property Handle as Integer
- property HasProtocol as Boolean
- property HasTA as Boolean
- property HasTB as Boolean
- property HasTC as Boolean
- property Protocol as Integer
- property TA as Integer
- property TB as Integer
- property TC as Integer
- class TKSmartCardATRMBS
- shared method available as Boolean
- method Constructor(data as MemoryBlock)
- method historicalRecords as TKCompactTLVRecordMBS()
- method interfaceGroupAtIndex(index as Integer) as TKSmartCardATRInterfaceGroupMBS
- method interfaceGroupForProtocol(protocol as Integer) as TKSmartCardATRInterfaceGroupMBS
- method protocols as Integer()
- property bytes as MemoryBlock
- property Handle as Integer
- property historicalBytes as MemoryBlock
- class TKSmartCardMBS
- 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
- 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
- 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
- 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)
- class TKSmartCardPINFormatMBS
- method Constructor
- property Charset as Integer
- property Encoding as Integer
- property Handle as Integer
- property MaxPINLength as Integer
- property MinPINLength as Integer
- property PINBitOffset as Integer
- property PINBlockByteLength as Integer
- property PINJustification as Integer
- property PINLengthBitOffset as Integer
- property PINLengthBitSize as Integer
- class TKSmartCardSlotManagerMBS
- shared method available as Boolean
- method Constructor
- shared method defaultManager as TKSmartCardSlotManagerMBS
- method Destructor
- method getSlotWithName(name as string, tag as variant = nil)
- method SetDelegate
- method slotNamed(name as string) as TKSmartCardSlotMBS
- method slotNames as string()
- property Handle as Integer
- event gotSlotWithName(name as string, slot as TKSmartCardSlotMBS, tag as variant)
- event slotNamesChanged
- class TKSmartCardSlotMBS
- method Constructor
- method Destructor
- method makeSmartCard as TKSmartCardMBS
- method SetDelegate
- property ATR as TKSmartCardATRMBS
- property Handle as Integer
- property maxInputLength as Integer
- property maxOutputLength as Integer
- property Name as String
- property State as Integer
- event StateChanged
- class TKSmartCardTokenDriverMBS
- method Constructor
- class TKSmartCardTokenMBS
- method Constructor(smartCard as TKSmartCardMBS, AID as MemoryBlock, instanceID as String, tokenDriver as TKSmartCardTokenDriverMBS)
- method Constructor(tokenDriver as TKTokenDriverMBS, instanceID as String)
- property AID as MemoryBlock
- class TKSmartCardTokenSessionMBS
- method Constructor
- method Constructor(token as TKTokenMBS)
- property smartCard as TKSmartCardMBS
- class TKSmartCardUserInteractionForPINOperationMBS
- method Constructor
- method PINMessageIndices as Integer()
- property locale as NSLocaleMBS
- property PINCompletion as Integer
- property resultData as MemoryBlock
- property resultSW as Integer
- class TKSmartCardUserInteractionForSecurePINChangeMBS
- method Constructor
- property PINConfirmation as Integer
- class TKSmartCardUserInteractionForSecurePINVerificationMBS
- method Constructor
- class TKSmartCardUserInteractionMBS
- method Cancel as Boolean
- method Constructor
- method Destructor
- method Run
- property Handle as Integer
- property initialTimeout as Double
- property interactionTimeout as Double
- event characterEnteredInUserInteraction
- event correctionKeyPressedInUserInteraction
- event invalidCharacterEnteredInUserInteraction
- event newPINConfirmationRequestedInUserInteraction
- event newPINRequestedInUserInteraction
- event oldPINRequestedInUserInteraction
- event runCompleted(success as boolean, error as NSErrorMBS)
- event validationKeyPressedInUserInteraction
- class TKTLVRecordMBS
- shared method available as Boolean
- method Constructor
- shared method recordFromData(data as MemoryBlock) as TKTLVRecordMBS
- shared method sequenceOfRecordsFromData(data as MemoryBlock) as TKTLVRecordMBS()
- property Data as MemoryBlock
- property Handle as Integer
- property Tag as UInt64
- property Value as MemoryBlock
- class TKTokenAuthOperationMBS
- method Constructor
- method finishWithError(byref error as NSErrorMBS) as Boolean
- property Handle as Integer
- class TKTokenDriverMBS
- method Constructor
- method Destructor
- method SetDelegate
- property Handle as Integer
- event createTokenForSmartCard(smartCard as TKSmartCardMBS, AID as MemoryBlock, byref error as NSErrorMBS) as TKSmartCardTokenMBS
- event terminateToken(token as TKTokenMBS)
- class TKTokenKeyAlgorithmMBS
- method Constructor
- method isAlgorithm(algorithm as string) as Boolean
- method supportsAlgorithm(algorithm as string) as Boolean
- property Handle as Integer
- class TKTokenKeychainCertificateMBS
- method Constructor(CertificateData as MemoryBlock, TKTokenObjectID as Variant)
- method Constructor(TKTokenObjectID as Variant)
- property data as MemoryBlock
- class TKTokenKeychainContentsMBS
- method certificateForObjectID(TKTokenObjectID as Variant, byref error as NSErrorMBS) as TKTokenKeychainCertificateMBS
- method Constructor
- method fillWithItems(items() as TKTokenKeychainItemMBS)
- method items as TKTokenKeychainItemMBS()
- method keyForObjectID(TKTokenObjectID as Variant, byref error as NSErrorMBS) as TKTokenKeychainKeyMBS
- property Handle as Integer
- class TKTokenKeychainItemMBS
- method Constructor(TKTokenObjectID as Variant)
- property constraints as Dictionary
- property Handle as Integer
- property Label as String
- property objectID as Variant
- class TKTokenKeychainKeyMBS
- method Constructor(CertificateData as MemoryBlock, TKTokenObjectID as Variant)
- method Constructor(TKTokenObjectID as Variant)
- property applicationTag as MemoryBlock
- property canDecrypt as Boolean
- property canPerformKeyExchange as Boolean
- property canSign as Boolean
- property keySizeInBits as Integer
- property keyType as String
- property publicKeyData as MemoryBlock
- property publicKeyHash as MemoryBlock
- property SuitableForLogin as Boolean
- class TKTokenKeyExchangeParametersMBS
- method Constructor
- property Handle as Integer
- property requestedSize as Integer
- property sharedInfo as MemoryBlock
- class TKTokenMBS
- method Constructor
- method Constructor(tokenDriver as TKTokenDriverMBS, instanceID as String)
- method Destructor
- method SetDelegate
- property Handle as Integer
- property keychainContents as TKTokenKeychainContentsMBS
- property tokenDriver as TKTokenDriverMBS
- event createSession(byref error as NSErrorMBS) as TKTokenSessionMBS
- event terminateSession(session as TKTokenSessionMBS)
- class TKTokenPasswordAuthOperationMBS
- method Constructor
- property password as String
- class TKTokenSessionMBS
- method Constructor
- method Constructor(token as TKTokenMBS)
- method Destructor
- method SetDelegate
- property Handle as Integer
- property token as TKTokenMBS
- event beginAuthForOperation(operation as Integer, constraint as Variant, byref error as NSErrorMBS) as TKTokenAuthOperationMBS
- event decryptData(ciphertext as MemoryBlock, keyObjectID as Variant, algorithm as TKTokenKeyAlgorithmMBS, byref error as NSErrorMBS) as MemoryBlock
- event performKeyExchangeWithPublicKey(otherPartyPublicKeyData as MemoryBlock, keyObjectID as Variant, algorithm as TKTokenKeyAlgorithmMBS, parameters as TKTokenKeyExchangeParametersMBS, byref error as NSErrorMBS) as MemoryBlock
- event signData(dataToSign as MemoryBlock, keyObjectID as Variant, algorithm as TKTokenKeyAlgorithmMBS, byref error as NSErrorMBS) as MemoryBlock
- event supportsOperation(operation as Integer, keyObjectID as Variant, algorithm as TKTokenKeyAlgorithmMBS) as Boolean
- class TKTokenSmartCardPINAuthOperationMBS
- method Constructor
- property APDUTemplate as MemoryBlock
- property PIN as String
- property PINByteOffset as Integer
- property PINFormat as TKSmartCardPINFormatMBS
- property smartCard as TKSmartCardMBS
- class TKTokenWatcherMBS
- method Constructor
- method Destructor
- method SetDelegate
- method tokenIDs as String()
- property Handle as Integer
- event Inserted(tokenID as string)
- event Removed(tokenID as string)
- event tokenIDsChanged
- class SmartCardContextMBS
- Blog Entries
Release notes
- Version 23.2
- Fixed a memory leak in constructor in TKTokenKeychainKeyMBS class.
- Version 20.2
- Fixed problem in ReadFile with MacOS Catalina in SmartCardMBS class.
- Version 20.0
- Changed SmartCardMBS.SplitValues method to mark valid UTF-8 strings to have UTF-8 encoding.
- Fixed problem in Readers function in SmartCardContextMBS class which may have cut off first character of a reader name.
- Improved code for ReadFile in SmartCardMBS to read in chunks of 256 bytes instead of 255 bytes.
- Version 19.5
- Fixed bug in ReadFile function in SmartCardMBS class.
- Version 18.5
- Added ReadFile method to SmartCardMBS class to read data from various smartcards (e.g. Swiss Health Insurance Card or Belgian Identity Card).
The items on this page are in the following plugins: MBS Mac64bit Plugin, MBS Tools Plugin.