FRATokenCodeViewController.m revision 094b0368ec64814f07f74f090192a2fe81c8d0b7
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2016 ForgeRock AS.
*/
#import "FRATokenCodeViewController.h"
#import "FRAIdentityDatabase.h"
}
+ (instancetype)controllerForView:(id<FRATokenCodeView>)view withMechanism:(FRAOathMechanism*)mechanism {
}
}
return self;
}
- (void)initView {
if (!timer) {
timer = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(timerCallback:) userInfo:nil repeats:YES];
}
if (timer) {
[timer invalidate];
}
}
}
- (void)showHideElements {
}];
} else {
}];
}];
}
}
}
}
- (void)updateCodeAndProgress {
UIColor* dashboardRed = [UIColor colorWithRed:169.0/255.0 green:68.0/255.0 blue:66.0/255.0 alpha:1.0];
if (!_mechanism.code) {
}
if (progress == 1.0) {
}
if (progress > 0.9f) {
}
} else {
}
NSString* codeValue = [@"" stringByPaddingToLength:_mechanism.digits withString:@"●" startingAtIndex:0];
}
}
}
- (void)didTouchUpInside {
if (!_mechanism.code) {
// if no code has been generated, allow the first to be created by touching anywhere within the cell;
// once the first code has been generated, the refresh button must be used
} else {
// otherwise, if a code has already been displayed, then copy it to the clipboard
}
}
}
}
- (void)generateNextCode {
}
}
@end