Searched refs:pushMechanism (Results 1 - 11 of 11) sorted by relevance

/forgerock/authenticator-ios-v2/ForgeRock-Authenticator/
H A DFRANotificationsTableViewController.h34 @property (strong, nonatomic) FRAPushMechanism *pushMechanism; variable
H A DFRAAccountTableViewController.m63 controllerWithView:self.pushTableViewCell mechanism:[self pushMechanism]];
101 controller.pushMechanism = [self pushMechanism];
190 return [self pushMechanism] != nil;
197 - (FRAPushMechanism *)pushMechanism {
206 mechanism = [self pushMechanism];
253 [FRAPushMechanismTableViewCellController controllerWithView:self.pushTableViewCell mechanism:[self pushMechanism]];
H A DFRAIdentityDatabaseSQLiteOperations.m132 FRAPushMechanism *pushMechanism = (FRAPushMechanism*)mechanism;
133 [arguments addObject:[FRASerialization nonNilString:pushMechanism.mechanismUID]];
185 FRAPushMechanism *pushMechanism = (FRAPushMechanism *)mechanism;
188 [options setObject:[FRASerialization nonNilString:pushMechanism.secret] forKey:PUSH_MECHANISM_SECRET];
191 [options setObject:[FRASerialization nonNilString:pushMechanism.authEndpoint] forKey:PUSH_MECHANISM_AUTH_END_POINT];
194 NSString *versionString = [[NSNumber numberWithInteger:pushMechanism.version] stringValue];
243 FRAPushMechanism *pushMechanism = (FRAPushMechanism *)parent;
244 mechanismUID = pushMechanism.mechanismUID;
298 FRAPushMechanism *pushMechanism = (FRAPushMechanism *)parent;
299 mechanismUID = pushMechanism
[all...]
H A DFRAAccountsTableViewController.m110 FRAPushMechanism *pushMechanism = (FRAPushMechanism *)[identity mechanismOfClass:[FRAPushMechanism class]];
112 if ((hotpOathMechanism || totpOathMechanism) && pushMechanism) {
114 cell.notificationsBadge.text = [NSString stringWithFormat:@"%lu", (unsigned long)[pushMechanism pendingNotificationsCount]];
118 } else if (pushMechanism) {
120 cell.notificationsBadge.text = [NSString stringWithFormat:@"%lu", (unsigned long)[pushMechanism pendingNotificationsCount]];
H A DFRAModelsFromDatabase.m241 FRAPushMechanism *pushMechanism = (FRAPushMechanism *)mechanism;
242 if ([pushMechanism.mechanismUID isEqualToString:newMechanism.mechanismUID]) {
243 newMechanism = pushMechanism;
H A DFRANotificationsTableViewController.m180 for (FRANotification *notification in [self.pushMechanism notifications]) {
200 for (FRANotification *notification in [self.pushMechanism notifications]) {
/forgerock/authenticator-ios-v2/unit-tests/
H A DFRAIdentityTests.m75 FRAPushMechanism *pushMechanism = [[FRAPushMechanism alloc] initWithDatabase:database identityModel:identityModel];
78 BOOL mechanismAdded = [identity addMechanism:pushMechanism error:nil];
82 XCTAssertEqual(pushMechanism.parent, identity);
83 XCTAssertTrue([[identity mechanisms] containsObject:pushMechanism]);
90 FRAPushMechanism *pushMechanism = [[FRAPushMechanism alloc] initWithDatabase:database identityModel:identityModel];
91 OCMStub([mockSqlOperations insertMechanism:pushMechanism error:nil]).andReturn(YES);
94 BOOL mechanismAdded = [identity addMechanism:pushMechanism error:nil];
98 XCTAssertTrue([pushMechanism isStored]);
99 OCMVerify([(FRAIdentityDatabaseSQLiteOperations*)mockSqlOperations insertMechanism:pushMechanism error:nil]);
106 FRAPushMechanism *pushMechanism
[all...]
H A DFRANotificationHandlerTest.m44 FRAPushMechanism *pushMechanism;
65 pushMechanism = [[FRAPushMechanism alloc] initWithDatabase:database identityModel:identityModel];
66 [pushMechanism setValue:@"0" forKey:@"mechanismUID"];
70 [identity addMechanism:pushMechanism error:nil];
92 FRANotification *notification = [pushMechanism notificationWithMessageId:@"123"];
110 XCTAssertEqual([pushMechanism notifications].count, 1, @"Notification handling should be idempotent");
122 XCTAssertEqual([pushMechanism notifications].count, 1, @"Only Push-Mechanism notifications should be handled");
H A DFRANotificationsTableViewControllerTests.m39 FRAPushMechanism *pushMechanism;
46 pushMechanism = [FRAPushMechanism pushMechanismWithDatabase:nil identityModel:nil];
51 viewController.pushMechanism = pushMechanism;
73 [pushMechanism addNotification:[self pendingNotificationReceivedAt:[NSDate date]] error:nil];
74 [pushMechanism addNotification:[self pendingNotificationReceivedAt:[NSDate date]] error:nil];
87 [pushMechanism addNotification:[self approvedNotificationReceivedAt:[NSDate date]] error:nil];
88 [pushMechanism addNotification:[self deniedNotificationReceivedAt:[NSDate date]] error:nil];
102 [pushMechanism addNotification:pendingNotification error:nil];
116 [pushMechanism addNotificatio
[all...]
H A DFRAAccountTableViewControllerTests.m109 FRAPushMechanism *pushMechanism = [FRAPushMechanism pushMechanismWithDatabase:nil identityModel:nil];
110 [identity addMechanism:pushMechanism error:nil];
122 FRAPushMechanism *pushMechanism = [FRAPushMechanism pushMechanismWithDatabase:nil identityModel:nil];
123 [pushMechanism addNotification:[self pendingNotification] error:nil];
124 [pushMechanism addNotification:[self pendingNotification] error:nil];
125 [pushMechanism addNotification:[self approvedNotification] error:nil];
126 [identity addMechanism:pushMechanism error:nil];
H A DFRAAccountsTableViewControllerTests.m125 FRAPushMechanism *pushMechanism = [[FRAPushMechanism alloc] initWithDatabase:nil identityModel:nil ];
127 [pushMechanism addNotification:[self dummyNotification] error:nil];
128 [pushMechanism addNotification:[self dummyNotification] error:nil];
129 [identity addMechanism:pushMechanism error:nil];
178 FRAPushMechanism *pushMechanism = [[FRAPushMechanism alloc] initWithDatabase:nil identityModel:nil ];
179 [pushMechanism addNotification:[self pendingNotification] error:nil];
180 [identity addMechanism:pushMechanism error:nil];

Completed in 55 milliseconds