Tells the delegate that authentication has begun for the specified operation and constraint.
SDKs
- iOS 13.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 13.0+
Framework
- Crypto
Token Kit
Declaration
optional func tokenSession(_ session: TKToken Session, beginAuthFor operation: TKToken Operation, constraint: Any) throws -> TKToken Auth Operation
Parameters
session
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 adomain
equal toTKError
and aDomain code
equal to a value defined by theTKError
enumeration..Code
Return Value
The resulting context of the operation, or nil
if an error occurred.
If you return an instance of a subclass of TKToken
that is provided by the CryptoTokenKit framework, the system will first fill in the context-specific properties, such as the password, before calling the finish
method on the context.