/forgerock/authenticator-ios-v2/ForgeRock-Authenticator/ |
H A D | FRAFMDatabaseFactory.m | 24 FMDatabase *database = [FMDatabase databaseWithPath:path]; 25 if (!database && error) { 26 *error = [FRAError createErrorForFilePath:path reason:@"Could not open database"]; 28 return database;
|
H A D | FRAPushMechanism.m | 26 - (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel { 27 return [self initWithDatabase:database identityModel:identityModel authEndpoint:nil secret:nil version:1 mechanismIdentifier:[NSUUID UUID].UUIDString]; 30 - (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel authEndpoint:(NSString *)authEndPoint secret:(NSString *)secret { 31 return [self initWithDatabase:database identityModel:identityModel authEndpoint:authEndPoint secret:secret version:1 mechanismIdentifier:[NSUUID UUID].UUIDString]; 34 - (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel authEndpoint:(NSString *)authEndPoint secret:(NSString *)secret version:(NSInteger)version mechanismIdentifier:(NSString *)mechanismIdentifier{ 35 self = [super initWithDatabase:database identityModel:identityModel]; 47 + (instancetype)pushMechanismWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel { 48 return [[FRAPushMechanism alloc] initWithDatabase:database identityModel:identityModel]; 52 + (instancetype)pushMechanismWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel authEndpoint:(NSString *)authEndPoint secret:(NSString *)secret version:(NSInteger)version mechanismIdentifier:(NSString *)mechanismIdentifier{ 53 return [[FRAPushMechanism alloc] initWithDatabase:database identityMode [all...] |
H A D | FRAModelObject.m | 28 - (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel { 30 _database = database;
|
H A D | FRAFMDatabaseConnectionHelper.m | 26 * This includes managing detail around initialising the schema for the database if 56 -(void)closeConnectionToDatabase:(FMDatabase *)database { 57 if (database == nil) { 63 NSLog(@"Closing database connection: %@", database); 64 BOOL result = [database close]; 70 # pragma mark Internal database management functions 73 * Internal call to intiailise the database. 85 FMDatabase *database = [_factory createDatabaseFor:databasePath withError:error]; 86 if (database [all...] |
H A D | FRAMechanismFactory.h | 29 * Build a FRA Mechanism object using the database and the model provided 32 * @param database The database to persist the new mechanism to. 38 - (FRAMechanism *) buildMechanism:(NSURL *)uri database:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel handler:(void (^)(BOOL, NSError *))handler error:(NSError *__autoreleasing *)error;
|
H A D | FRAModelObjectProtected.h | 26 * The database to which this object is persisted. 28 @property (nonatomic, strong) FRAIdentityDatabase* database; variable 31 * Indicates whether this model object has been persisted to the database.
|
H A D | FRANotificationHandler.h | 36 * @param database The database to which this object can be persisted. 40 - (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel; 48 + (instancetype)handlerWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel;
|
H A D | FRAPushMechanism.h | 46 * @param database The database to which this mechanism can be persisted. 51 - (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel; 56 * @param database Required to allow mechnaism to persist changes. 60 * @param version the version of the database object. 65 - (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel authEndpoint:(NSString *)authEndPoint secret:(NSString *)secret version:(NSInteger)version mechanismIdentifier:(NSString *)mechanismIdentifier; 70 * @param database Required to allow mechnaism to persist changes. 77 - (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel authEndpoint:(NSString *)authEndPoint secret:(NSString *)secret; 82 * @param database The database t [all...] |
H A D | FRAModelObject.h | 29 * Indicates whether this model object has been persisted to the database. 40 // TODO: Create FRAModelObjectSubclass.h private header file that includes protected database property and init methods? 50 * @param database The database to which this object can be persisted. 54 - (instancetype)initWithDatabase:(FRAIdentityDatabase *)database identityModel:(FRAIdentityModel *)identityModel;
|
H A D | FRAError.m | 24 + (NSError *)createErrorForLastFailure:(FMDatabase *) database { 25 NSString* description = ([database.lastErrorMessage length] > 0) ? database.lastErrorMessage : @"nil"; 26 int code = (database) ? database.lastErrorCode : -1;
|
/forgerock/opendj2/src/server/org/opends/server/backends/jeb/ |
H A D | DatabaseContainer.java | 36 * This class is a wrapper around the JE database object and provides basic 47 * The database entryContainer. 52 * The JE database configuration. 57 * The name of the database within the entryContainer. 67 * A JE database handle opened through this database 70 private Database database; field in class:DatabaseContainer 75 * @param name The name of the entry database. 77 * @param entryContainer The entryContainer of the entry database. 78 * @throws DatabaseException if a JE database erro [all...] |
H A D | DbPreloadComparator.java | 47 * Calculate the relative priority of a database for preloading. 49 * @param database A handle to the database. 50 * @return 1 for id2entry database, 2 for dn2id database, 3 for all others. 52 static private int priority(DatabaseContainer database) argument 54 String name = database.getName();
|
/forgerock/opendj-b2.6/src/server/org/opends/server/backends/jeb/ |
H A D | DatabaseContainer.java | 37 * This class is a wrapper around the JE database object and provides basic 48 * The database entryContainer. 53 * The JE database configuration. 58 * The name of the database within the entryContainer. 68 * A JE database handle opened through this database 71 private Database database; field in class:DatabaseContainer 76 * @param name The name of the entry database. 78 * @param entryContainer The entryContainer of the entry database. 79 * @throws DatabaseException if a JE database erro [all...] |
H A D | DbPreloadComparator.java | 48 * Calculate the relative priority of a database for preloading. 50 * @param database A handle to the database. 51 * @return 1 for id2entry database, 2 for dn2id database, 3 for all others. 53 static private int priority(DatabaseContainer database) argument 55 String name = database.getName();
|
/forgerock/opendj2.6.2/src/server/org/opends/server/backends/jeb/ |
H A D | DatabaseContainer.java | 37 * This class is a wrapper around the JE database object and provides basic 48 * The database entryContainer. 53 * The JE database configuration. 58 * The name of the database within the entryContainer. 68 * A JE database handle opened through this database 71 private Database database; field in class:DatabaseContainer 76 * @param name The name of the entry database. 78 * @param entryContainer The entryContainer of the entry database. 79 * @throws DatabaseException if a JE database erro [all...] |
H A D | DbPreloadComparator.java | 48 * Calculate the relative priority of a database for preloading. 50 * @param database A handle to the database. 51 * @return 1 for id2entry database, 2 for dn2id database, 3 for all others. 53 static private int priority(DatabaseContainer database) argument 55 String name = database.getName();
|
/forgerock/opendj2-hg/src/server/org/opends/server/backends/jeb/ |
H A D | DatabaseContainer.java | 36 * This class is a wrapper around the JE database object and provides basic 47 * The database entryContainer. 52 * The JE database configuration. 57 * The name of the database within the entryContainer. 67 * A JE database handle opened through this database 70 private Database database; field in class:DatabaseContainer 75 * @param name The name of the entry database. 77 * @param entryContainer The entryContainer of the entry database. 78 * @throws DatabaseException if a JE database erro [all...] |
H A D | DbPreloadComparator.java | 47 * Calculate the relative priority of a database for preloading. 49 * @param database A handle to the database. 50 * @return 1 for id2entry database, 2 for dn2id database, 3 for all others. 52 static private int priority(DatabaseContainer database) argument 54 String name = database.getName();
|
/forgerock/opendj2-jel-hg/src/server/org/opends/server/backends/jeb/ |
H A D | DatabaseContainer.java | 37 * This class is a wrapper around the JE database object and provides basic 48 * The database entryContainer. 53 * The JE database configuration. 58 * The name of the database within the entryContainer. 68 * A JE database handle opened through this database 71 private Database database; field in class:DatabaseContainer 76 * @param name The name of the entry database. 78 * @param entryContainer The entryContainer of the entry database. 79 * @throws DatabaseException if a JE database erro [all...] |
H A D | DbPreloadComparator.java | 48 * Calculate the relative priority of a database for preloading. 50 * @param database A handle to the database. 51 * @return 1 for id2entry database, 2 for dn2id database, 3 for all others. 53 static private int priority(DatabaseContainer database) argument 55 String name = database.getName();
|
/forgerock/authenticator-android-v2/app/src/test/java/com/forgerock/authenticator/storage/ |
H A D | IdentityDatabaseTest.java | 64 private IdentityDatabase database; field in class:IdentityDatabaseTest 79 database = new IdentityDatabase(RuntimeEnvironment.application, new CoreMechanismFactory(RuntimeEnvironment.application, model)); 81 model.loadFromStorageSystem(database); 84 database.addIdentity(internalSavedIdentity); 88 database.addIdentity(SAVED_IDENTITY); 97 database.addMechanism(SAVED_MECHANISM); 106 assertNotEquals(database.addIdentity(BASIC_IDENTITY), -1l); 111 assertNotEquals(database.addIdentity(BASIC_IDENTITY), -1l); 112 assertEquals(database.addIdentity(BASIC_IDENTITY), -1l); 120 long id = database [all...] |
/forgerock/authenticator-ios-v2/unit-tests/ |
H A D | FRASqlDatabaseFactoryTest.m | 24 static NSString * const PATH = @"/database/path"; 48 FMDatabase *database = [factory createDatabaseFor:PATH withError:&error]; 50 XCTAssertNil(database); 59 FMDatabase *database = [factory createDatabaseFor:PATH withError:nil]; 61 XCTAssertEqual(database, mockDatabase);
|
H A D | FRANotificationHandlerTest.m | 41 FRAIdentityDatabase *database; 59 database = [[FRAIdentityDatabase alloc] initWithSqlOperations:mockDatabaseOperations]; 62 identityModel = [[FRAIdentityModel alloc] initWithDatabase:database sqlDatabase:mockSqlDatabase]; 63 identity = [FRAIdentity identityWithDatabase:database identityModel:identityModel accountName:TEST_USERNAME issuer:@"ForgeRock" image:nil backgroundColor:nil]; 65 pushMechanism = [[FRAPushMechanism alloc] initWithDatabase:database identityModel:identityModel]; 68 oathMechanism = [[FRAHotpOathMechanism alloc] initWithDatabase:database identityModel:identityModel]; 73 // persist to object model database 74 [database insertIdentity:identity error:nil]; 76 handler = [[FRANotificationHandler alloc] initWithDatabase:database identityModel:identityModel]; 94 XCTAssertEqualObjects(notification.database, databas [all...] |
H A D | FRAFMDatabaseConnectionHelperTest.m | 26 static NSString * const DatabaseFilePath = @"/database/path"; 35 * database code, and demonstrate that it throws exceptions for conditions 91 FRAFMDatabaseConnectionHelper *database = [FRAFMDatabaseConnectionHelper alloc]; 93 FMDatabase *connection = [database getConnectionWithError:nil]; 101 FRAFMDatabaseConnectionHelper *database = [[FRAFMDatabaseConnectionHelper alloc] initWithConfiguration:mockConfig databaseFactory:mockFactory]; 103 FMDatabase *connection = [database getConnectionWithError:nil]; 112 FRAFMDatabaseConnectionHelper *database = [[FRAFMDatabaseConnectionHelper alloc] initWithConfiguration:mockConfig databaseFactory:mockFactory]; 114 FMDatabase *connection = [database getConnectionWithError:nil]; 125 FRAFMDatabaseConnectionHelper *database = [[FRAFMDatabaseConnectionHelper alloc] initWithConfiguration:mockConfig databaseFactory:mockFactory]; 127 FMDatabase *connection = [database getConnectionWithErro [all...] |
H A D | FRANotificationTest.m | 36 FRAIdentityDatabase *database; 47 database = [[FRAIdentityDatabase alloc] initWithSqlOperations:mockSqlOperations]; 49 mechanism = [[FRAPushMechanism alloc] initWithDatabase:database identityModel:mockIdentityModel authEndpoint:@"http://service.endpoint" secret:@"secret"]; 50 notification = [[FRANotification alloc] initWithDatabase:database identityModel:mockIdentityModel messageId:@"messageId" challenge:@"challenge" timeReceived:[NSDate date] timeToLive:timeToLive loadBalancerCookieData:@"amlbcookie=03"]; 80 FRANotification *expiringNotification = [[FRANotification alloc] initWithDatabase:database identityModel:mockIdentityModel messageId:@"messageId" challenge:@"challenge" timeReceived:timeReceived timeToLive:timeToLive loadBalancerCookieData:@"amlbcookie=03"]; 102 [database insertNotification:notification error:nil]; 132 [database insertNotification:notification error:nil]; 154 [database insertNotification:notification error:nil]; 175 [database insertNotification:notification error:nil]; 188 [database insertNotificatio [all...] |