FRAIdentityModel.m revision 6a2ae9c7fb4d2c40d75cab0edaf940f22c18224f
893N/A * Distribution License (the License). You may not use this file except in compliance with the
893N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
893N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include
893N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
893N/A@interface FRAIdentityModel ()
893N/A- (instancetype)initWithDatabase:(FRAIdentityDatabase *)database sqlDatabase:(FRAFMDatabaseConnectionHelper *) sql {
893N/A NSArray<FRAIdentity*> *identities = [FRAModelsFromDatabase allIdentitiesWithDatabase:sql identityDatabase:database identityModel:self error:&error];
893N/A if (!identities) {
893N/A if ([identity.issuer isEqualToString:issuer] && [identity.accountName isEqualToString:accountName]) {
if ([mechanism isKindOfClass:[FRAPushMechanism class]] && [((FRAPushMechanism *)mechanism).mechanismUID isEqualToString: uid]) {
return mechanism;
return nil;
return count;
@end