Platforms to show: All Mac Windows Linux Cross-Platform
TKTokenSessionMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | SmartCard | MBS Mac64bit Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A token session communicates with its delegate to perform operations with its token that are bound to the authentication state.
A session is always instantiated by a TKTokenMBS instance through the token's delegate when the framework detects access to the token from a new authentication session.
Never share the authentication status of a token, such as the PIN entered to unlock a smart card, with other token sessions.
- 5 events
- 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
- 2 properties
- property Handle as Integer
- property token as TKTokenMBS
- 4 methods
- method Constructor Private
- method Constructor(token as TKTokenMBS)
- method Destructor
- method SetDelegate
- 5 constants
Token Operations
Constant | Value | Description |
---|---|---|
kTokenOperationDecryptData | 3 |
Decrypt data using a private key. |
kTokenOperationNone | 0 |
No operation. |
kTokenOperationPerformKeyExchange | 4 |
Perform a Diffie-Hellman style cryptographic key exchange using a private key. |
kTokenOperationReadData | 1 |
Read raw data of a certificate. |
kTokenOperationSignData | 2 |
Create a cryptographic signature using a private key. |
Sub classes:
Some events using this class:
- TKTokenMBS.createSession(byref error as NSErrorMBS) as TKTokenSessionMBS
- TKTokenMBS.terminateSession(session as TKTokenSessionMBS)
The items on this page are in the following plugins: MBS Mac64bit Plugin.
TKTokenPasswordAuthOperationMBS - TKTokenSmartCardPINAuthOperationMBS