Instance Method

tokenSession:beginAuthForOperation:constraint:error:

Tells the delegate that authentication has begun for the specified operation and constraint.

Declaration

- (TKTokenAuthOperation *)tokenSession:(TKTokenSession *)session beginAuthForOperation:(TKTokenOperation)operation constraint:(TKTokenOperationConstraint)constraint error:(NSError * _Nullable *)error;

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 a domain equal to TKErrorDomain and a code equal to a value defined by the TKErrorCode enumeration.

Return Value

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.

See Also

Authenticating

TKTokenOperationConstraint

A token's authentication constraint for a specific operation.

TKTokenAuthOperation

An authentication operation for a cryptographic token.

TKTokenPasswordAuthOperation

A password-based authentication operation.

TKTokenSmartCardPINAuthOperation

A Smart Card PIN authentication operation.