Instance Method


Asks the delegate whether the token session supports a given operation using the specified key and algorithm.


optional func tokenSession(_ session: TKTokenSession, supports operation: TKTokenOperation, keyObjectID: TKToken.ObjectID, algorithm: TKTokenKeyAlgorithm) -> Bool



The token session.


The operation to perform. For possible values, see TKTokenOperation.


The identifier of the private key object.


The algorithm to be used by the operation.

Return Value

true if the operation is supported; otherwise, false.

See Also

Determining Support for Operations

enum TKTokenOperation

Operations that can be performed with a token's keys and certificates.

typealias TKToken.ObjectID

A unique and persistent identifier of a particular token object.

class TKTokenKeyAlgorithm

Cryptographic algorithms used by token keys.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software