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 |
Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-09-22