Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

TKTokenSessionMBS.beginAuthForOperation(operation as Integer, constraint as Variant, byref error as NSErrorMBS) as TKTokenAuthOperationMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event SmartCard MBS Mac64bit Plugin 18.5 Yes No No No No
Function: Tells the delegate that authentication has begun for the specified operation and constraint.
Notes:
self: The token session.
operation: The kind of operation.
constraint: The constraint to be satisfied.
error: If an error occurred, this method should return nil and populate this parameter with an object containing details of the error. The error object should have a domain equal to TKErrorDomain and a code equal to a value defined by the TKErrorCode enumeration.

Return the resulting context of the operation, or nil if an error occurred.

If you return an instance of a subclass of TKTokenAuthOperation that is provided by the CryptoTokenKit framework, the system will first fill in the context-specific properties, such as the password, before calling the finishWithError: method on the context.

Feedback, Comments & Corrections

TKTokenSessionMBS.decryptData(ciphertext as MemoryBlock, keyObjectID as Variant, algorithm as TKTokenKeyAlgorithmMBS, byref error as NSErrorMBS) as MemoryBlock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event SmartCard MBS Mac64bit Plugin 18.5 Yes No No No No
Function: Tells the delegate to decrypt a data object using the specified key and algorithm.
Notes:
self: The token session.
ciphertext: The data to decrypt.
keyObjectID: The identifier of the public key object.
algorithm: The algorithm to be used for decryption.
error: If an error occurred, this method should return nil and populate this parameter with an object containing details of the error. The error object should have a domain equal to TKErrorDomain and a code equal to a value defined by the TKErrorCode enumeration.

Returns the decrypted data, or nil if an error occurred.

Feedback, Comments & Corrections

TKTokenSessionMBS.performKeyExchangeWithPublicKey(otherPartyPublicKeyData as MemoryBlock, keyObjectID as Variant, algorithm as TKTokenKeyAlgorithmMBS, parameters as TKTokenKeyExchangeParametersMBS, byref error as NSErrorMBS) as MemoryBlock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event SmartCard MBS Mac64bit Plugin 18.5 Yes No No No No
Function: Tells the delegate to perform a key exchange using the specified key and algorithm.
Notes:
self: The token session.
otherPartyPublicKeyData: The public key of the other party.
keyObjectID: The identifier of the private key object.
algorithm: The algorithm to be used for key exchange.
parameters: Additional parameters used by algorithm to perform the key exchange.
error: If an error occurred, this method should return nil and populate this parameter with an object containing details of the error. The error object should have a domain equal to TKErrorDomain and a code equal to a value defined by the TKErrorCode enumeration.

Returns the result of the key exchange, or nil if an error occurred.

Feedback, Comments & Corrections

TKTokenSessionMBS.signData(dataToSign as MemoryBlock, keyObjectID as Variant, algorithm as TKTokenKeyAlgorithmMBS, byref error as NSErrorMBS) as MemoryBlock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event SmartCard MBS Mac64bit Plugin 18.5 Yes No No No No
Function: Tells the delegate to sign a data object using the specified key and algorithm.
Notes:
self: The token session.
data: The data to sign.
keyObjectID: The identifier of the private key object.
algorithm: The algorithm to be used for signing.
error: If an error occurred, this method should return nil and populate this parameter with an object containing details of the error. The error object should have a domain equal to TKErrorDomain and a code equal to a value defined by the TKErrorCode enumeration.

Return the signed data, or nil if an error occurred.

Feedback, Comments & Corrections

TKTokenSessionMBS.supportsOperation(operation as Integer, keyObjectID as Variant, algorithm as TKTokenKeyAlgorithmMBS) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
event SmartCard MBS Mac64bit Plugin 18.5 Yes No No No No
Function: Asks the delegate whether the token session supports a given operation using the specified key and algorithm.
Notes:
self: The token session.
operation: The operation to perform. For possible values, see kTokenOperation* constants.
keyObjectID: The identifier of the private key object.
algorithm: The algorithm to be used by the operation.

Returns true if the operation is supported; otherwise, false.

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Mac64bit Plugin.




Links
MBS Xojo Plugins