tokenSession(_:sign:keyObjectID:algorithm:)
Tells the delegate to sign a data object using the specified key and algorithm.
Declaration
optional func tokenSession(_ session: TKTokenSession, sign dataToSign: Data, keyObjectID: TKToken.ObjectID, algorithm: TKTokenKeyAlgorithm) throws -> DataParameters
- session:
The token session.
- dataToSign:
The data to sign.
- keyObjectID:
The identifier of the private key object.
- algorithm:
The algorithm to be used for signing.
Return Value
The signed data, or nil if an error occurred.