PIVToken/TokenDriver.m

/*
 Copyright (C) 2016 Apple Inc. All Rights Reserved.
 See LICENSE.txt for this sample’s licensing information
 
 Abstract:
 TokenDriver Instantiates the Token
 */
 
#import <Foundation/Foundation.h>
#import <CryptoTokenKit/CryptoTokenKit.h>
 
#import "Token.h"
 
@implementation PIVTokenDriver
 
- (TKSmartCardToken *)tokenDriver:(TKSmartCardTokenDriver *)driver createTokenForSmartCard:(TKSmartCard *)smartCard AID:(NSData *)AID error:(NSError * _Nullable __autoreleasing *)error {
    return [[PIVToken alloc] initWithSmartCard:smartCard AID:AID PIVDriver:self error:error];
}
 
@end