Class

TKTokenSession

A token session that manages the authentication state of a token.

Declaration

class TKTokenSession : NSObject

Overview

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 TKToken instance through the token's delegate when the framework detects access to the token from a new authentication session.

Topics

Creating Token Sessions

init(token: TKToken)

Initializes a token session with the specified token.

Responding to Authentication Events

var delegate: TKTokenSessionDelegate?

The token session delegate.

protocol TKTokenSessionDelegate

The interface that a session instance delegate implements to respond to token session authentication events.

Accessing the Token

var token: TKToken

The token to which the session is bound.

Relationships

Inherits From

Conforms To

See Also

Two-Factor Authentication

Authenticating Users with a Cryptographic Token

Grant access to user accounts and the keychain by creating a token driver app extension.

class TKTokenDriver

The abstract base class for building token drivers.

class TKToken

A representation of a hardware-based cryptographic token.

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