/forgerock/authenticator-ios-v2/ForgeRock-Authenticator/ |
H A D | FRAPushMechanismTableViewCellController.h | 23 * Controller push mechanism displayed in table cell on Account screen. 30 @property (weak, nonatomic) FRAPushMechanism *mechanism; variable 39 - (instancetype)initWithView:(FRAPushMechanismTableViewCell *)view mechanism:(FRAPushMechanism *)mechanism; 44 + (instancetype)controllerWithView:(FRAPushMechanismTableViewCell *)view mechanism:(FRAPushMechanism *)mechanism; 47 * Updates UI from latest mechanism state.
|
H A D | FRAOathMechanismTableViewCellController.h | 28 @property (weak, nonatomic) FRAMechanism *mechanism; variable 37 - (instancetype)initWithView:(FRAOathMechanismTableViewCell *)view mechanism:(FRAMechanism *)mechanism; 42 + (instancetype)controllerWithView:(FRAOathMechanismTableViewCell *)view mechanism:(FRAMechanism *)mechanism; 45 * Updates UI from latest mechanism state.
|
H A D | FRAPushMechanismTableViewCellController.m | 23 + (instancetype)controllerWithView:(FRAPushMechanismTableViewCell *)view mechanism:(FRAPushMechanism *)mechanism { 24 return [[FRAPushMechanismTableViewCellController alloc] initWithView:view mechanism:mechanism]; 27 - (instancetype)initWithView:(FRAPushMechanismTableViewCell *)tableViewCell mechanism:(FRAPushMechanism *)mechanism { 30 _mechanism = mechanism; 63 self.tableViewCell.notificationsBadge.text = [NSString stringWithFormat:@"%ld", (long)[self.mechanism pendingNotificationsCount]];
|
H A D | FRAOathMechanismTableViewCellController.m | 40 + (instancetype)controllerWithView:(FRAOathMechanismTableViewCell*)view mechanism:(FRAMechanism *)mechanism { 41 return [[FRAOathMechanismTableViewCellController alloc] initWithView:view mechanism:mechanism]; 44 - (instancetype)initWithView:(FRAOathMechanismTableViewCell*)view mechanism:(FRAMechanism *)mechanism { 47 _mechanism = mechanism; 54 if ([self.mechanism isKindOfClass:[FRATotpOathMechanism class]]) { 56 } else if ([self.mechanism isKindOfClass:[FRAHotpOathMechanism class]]) { 74 if ([self.mechanism isKindOfClas [all...] |
H A D | FRAIdentity.m | 59 for (FRAMechanism *mechanism in mechanismList) { 60 if ([mechanism isKindOfClass:aClass]) { 61 return mechanism; 67 - (BOOL)addMechanism:(FRAMechanism *)mechanism error:(NSError *__autoreleasing *)error { 70 if ([mechanism isKindOfClass:[FRAPushMechanism class]]) { 78 *error = [FRAError createError:[NSString stringWithFormat:@"Duplicate mechanism for %@ account.", _issuer] 80 userInfo:@{ @"identity":self, @"mechanism":duplicateMechanism }]; 85 [mechanism setParent:self]; 86 [mechanismList addObject:mechanism]; 89 result = [self.database insertMechanism:mechanism erro [all...] |
H A D | FRAIdentityDatabase.m | 75 for (FRAMechanism *mechanism in [identity mechanisms]) { 76 if (![self doInsertMechanism:mechanism andCollectStateChanges:stateChanges withError:error]) { 105 for (FRAMechanism *mechanism in [identity mechanisms]) { 106 if (![self doDeleteMechanism:mechanism andCollectStateChanges:stateChanges withError:error]) { 121 - (BOOL)insertMechanism:(FRAMechanism *)mechanism error:(NSError *__autoreleasing *)error { 123 if (![self doInsertMechanism:mechanism andCollectStateChanges:stateChanges withError:error]) { 130 - (BOOL)doInsertMechanism:(FRAMechanism *)mechanism andCollectStateChanges:(NSMutableDictionary *)stateChanges withError:(NSError *__autoreleasing *)error { 131 if ([mechanism isStored]) { 137 for (FRANotification *notification in [mechanism notifications]) { 142 if (![self.sqlOperations insertMechanism:mechanism erro [all...] |
/forgerock/openam-v13/openam-federation/openam-federation-library/src/main/java/com/sun/identity/liberty/ws/authnsvc/mechanism/ |
H A D | package-info.java | 35 package com.sun.identity.liberty.ws.authnsvc.mechanism;
|
/forgerock/openam/openam-federation/openam-federation-library/src/main/java/com/sun/identity/liberty/ws/authnsvc/mechanism/ |
H A D | package-info.java | 35 package com.sun.identity.liberty.ws.authnsvc.mechanism;
|
/forgerock/authenticator-ios-v2/unit-tests/ |
H A D | FRAMechanismTest.m | 35 FRAMechanism *mechanism; 43 mechanism = [[FRAMechanism alloc] initWithDatabase:database identityModel:mockIdentityModel]; 58 BOOL notificationAdded = [mechanism addNotification:notification error:nil]; 62 XCTAssertEqual(notification.parent, mechanism); 63 XCTAssertTrue([[mechanism notifications] containsObject:notification]); 69 OCMStub([(FRAIdentityDatabaseSQLiteOperations*)mockSqlOperations insertMechanism:mechanism error:nil]).andReturn(YES); 71 XCTAssertTrue([database insertMechanism:mechanism error:nil]); 74 BOOL notificationAdded = [mechanism addNotification:notification error:nil]; 83 OCMStub([(FRAIdentityDatabaseSQLiteOperations*)mockSqlOperations insertMechanism:mechanism error:nil]).andReturn(YES); 84 [database insertMechanism:mechanism erro [all...] |
H A D | FRAOathMechanismFactoryTests.m | 67 FRAHotpOathMechanism *mechanism = (FRAHotpOathMechanism *)[factory buildMechanism:qrUrl database:identityDatabase identityModel:identityModel handler:nil error:nil]; 70 XCTAssertNotNil(mechanism); 71 XCTAssertEqualObjects([[mechanism class] mechanismType], @"hotp"); 79 FRATotpOathMechanism *mechanism = (FRATotpOathMechanism *)[factory buildMechanism:qrUrl database:identityDatabase identityModel:identityModel handler:nil error:nil]; 82 XCTAssertNotNil(mechanism); 83 XCTAssertEqualObjects([[mechanism class] mechanismType], @"totp"); 91 FRAHotpOathMechanism *mechanism = (FRAHotpOathMechanism *)[factory buildMechanism:qrUrl database:identityDatabase identityModel:identityModel handler:nil error:nil]; 94 XCTAssertEqual(mechanism.codeLength, DEFAULT_CODE_LENGTH); 102 FRATotpOathMechanism *mechanism = (FRATotpOathMechanism *)[factory buildMechanism:qrUrl database:identityDatabase identityModel:identityModel handler:nil error:nil]; 105 XCTAssertEqual(mechanism [all...] |
H A D | FRATotpOathMechanismTests.m | 60 FRATotpOathMechanism *mechanism = (FRATotpOathMechanism *)[reader parseFromURL:qrUrl handler:nil error:nil]; 61 BOOL result = [mechanism generateNextCode:nil]; 64 XCTAssertGreaterThan(mechanism.code.length, 0); 70 FRATotpOathMechanism *mechanism = (FRATotpOathMechanism *)[reader parseFromURL:qrUrl handler:nil error:nil]; 71 [mechanism generateNextCode:nil]; 73 XCTAssertGreaterThan(mechanism.progress, 0); 74 XCTAssertLessThan(mechanism.progress, 1); 75 XCTAssertFalse(mechanism.hasExpired); 81 FRATotpOathMechanism *mechanism = (FRATotpOathMechanism *)[reader parseFromURL:qrUrl handler:nil error:nil]; 82 [mechanism generateNextCod [all...] |
H A D | FRAHotpOathMechanismTests.m | 72 FRAHotpOathMechanism *mechanism = (FRAHotpOathMechanism *)[reader parseFromString:qrString handler:nil error:nil]; 75 BOOL result = [mechanism generateNextCode:nil]; 76 NSString *nextCode = [mechanism code]; 86 FRAHotpOathMechanism *mechanism = (FRAHotpOathMechanism *)[reader parseFromString:qrString handler:nil error:nil]; 89 BOOL result = [mechanism generateNextCode:nil]; 90 NSString *nextCode = [mechanism code]; 100 FRAHotpOathMechanism *mechanism = (FRAHotpOathMechanism *)[reader parseFromString:qrString handler:nil error:nil]; 101 OCMStub([(FRAIdentityDatabaseSQLiteOperations *)mockSqlOperations insertMechanism:mechanism error:nil]).andReturn(YES); 102 [database insertMechanism:mechanism error:nil]; 105 [mechanism generateNextCod [all...] |
H A D | FRAUriMechanismReaderTests.m | 74 FRAPushMechanism *mechanism = (FRAPushMechanism *)[reader parseFromURL:qrUrl handler:nil error:nil]; 76 XCTAssertNotNil(mechanism); 77 XCTAssertEqual([mechanism class], [FRAPushMechanism class]); 83 FRAHotpOathMechanism *mechanism = (FRAHotpOathMechanism *)[reader parseFromURL:qrUrl handler:nil error:nil]; 85 XCTAssertNotNil(mechanism); 86 XCTAssertEqual([mechanism class], [FRAHotpOathMechanism class]); 92 FRATotpOathMechanism *mechanism = (FRATotpOathMechanism *)[reader parseFromURL:qrUrl handler:nil error:nil]; 94 XCTAssertNotNil(mechanism); 95 XCTAssertEqual([mechanism class], [FRATotpOathMechanism class]);
|
/forgerock/authenticator-android-v2/app/src/main/java/com/forgerock/authenticator/baseactivities/ |
H A D | BaseMechanismActivity.java | 40 private Mechanism mechanism; field in class:BaseMechanismActivity 47 return mechanism; 55 mechanism = identityModel.getMechanism(mechanismReference); 57 if (mechanism == null) { 67 * @param mechanism The mechanism to pass. 71 Mechanism mechanism) { 73 intent.putExtra(MECHANISM_REFERENCE, mechanism.getOpaqueReference()); 69 start(Context context, Class<? extends BaseMechanismActivity> mechanismActivity, Mechanism mechanism) argument
|
/forgerock/authenticator-android-v2/app/src/main/java/com/forgerock/authenticator/delete/ |
H A D | DeleteMechanismActivity.java | 34 * Activity responsible for verifying that a user wishes to delete a mechanism, then deleting it. 47 final Mechanism mechanism = getMechanism(); 48 if (mechanism == null) { 53 final Identity owner = mechanism.getOwner(); 54 ((TextView) findViewById(R.id.issuer)).setText(mechanism.getOwner().getIssuer()); 55 ((TextView) findViewById(R.id.label)).setText(mechanism.getOwner().getAccountName()); 59 .load(mechanism.getOwner().getImageURL()) 73 owner.removeMechanism(mechanism);
|
/forgerock/authenticator-android-v2/app/src/main/java/com/forgerock/authenticator/identity/ |
H A D | Identity.java | 61 * Adds the provided mechanism to this Identity, and therefore to the larger data model. 62 * @param builder An incomplete builder for a non stored mechanism. 63 * @return The mechanism that has been added to the data model. 64 * @throws MechanismCreationException If something went wrong when creating the mechanism. 67 Mechanism mechanism = builder.build(this); 68 if (!mechanism.isStored()) { 69 Mechanism duplicate = findMatching(mechanism); 71 throw new DuplicateMechanismException("Tried to add duplicate mechanism to identity", duplicate); 73 mechanism.save(); 74 mechanismList.add(mechanism); 96 removeMechanism(Mechanism mechanism) argument [all...] |
/forgerock/authenticator-android-v2/app/src/main/java/com/forgerock/authenticator/storage/ |
H A D | IdentityModel.java | 114 * Get an mechanism based on the opaque reference provided. 115 * @param opaqueReference The opaque reference of the mechanism to get. 116 * @return The mechanism that matches the opaque reference. 123 for (Mechanism mechanism : identity.getMechanisms()) { 124 if (mechanism.consumeOpaqueReference(opaqueReference)) { 125 return mechanism; 137 Mechanism mechanism = getMechanism(opaqueReference); 138 if (mechanism == null) { 141 for (Notification notification : mechanism.getNotifications()) { 186 * @return The new mechanism UI [all...] |
H A D | StorageSystem.java | 27 * Encapsulates a backing storage mechanism, and provides a standard set of functions for operating 45 * Add the mechanism to the database. If the owning identity is not yet stored, store that as well. 46 * @param mechanism The mechanism to store. 48 long addMechanism(Mechanism mechanism); argument 57 * Update the mechanism in the database. Does not create it if it does not exist. 58 * @param mechanismId The id of the mechanism to update. 59 * @param mechanism The mechanism to update it with. 61 boolean updateMechanism(long mechanismId, Mechanism mechanism); argument [all...] |
/forgerock/authenticator-android-v2/app/src/main/java/com/forgerock/authenticator/add/ |
H A D | CreateMechanismFromUriTask.java | 69 Mechanism mechanism = new CoreMechanismFactory(activity, model).createFromUri(uri[0]); 70 return mechanism; 74 logger.error("Failed to create mechanism from URI", e); 86 protected void onPostExecute(Mechanism mechanism) { argument 105 complete(mechanism); 109 private void complete(Mechanism mechanism) { argument 111 onCompletion.run(mechanism); 119 * @param mechanism The mechanism that was produced. Will be null if creation failed. 121 void run(Mechanism mechanism); argument [all...] |
/forgerock/opendj-b2.6/src/server/org/opends/server/tools/ |
H A D | LDAPConnectionOptions.java | 159 * Set the SASL mechanism used for authentication. 161 * @param mechanism The SASL mechanism string, in "name=value" form. 163 * @return <CODE>true</CODE> if the SASL mechanism was set, or 166 public boolean setSASLMechanism(String mechanism) argument 168 int idx = mechanism.indexOf("="); 171 System.err.println("Invalid SASL mechanism property:" + mechanism); 174 this.saslMechanism = mechanism.substring(idx+1, mechanism [all...] |
/forgerock/opendj2/src/server/org/opends/server/tools/ |
H A D | LDAPConnectionOptions.java | 158 * Set the SASL mechanism used for authentication. 160 * @param mechanism The SASL mechanism string, in "name=value" form. 162 * @return <CODE>true</CODE> if the SASL mechanism was set, or 165 public boolean setSASLMechanism(String mechanism) argument 167 int idx = mechanism.indexOf("="); 170 System.err.println("Invalid SASL mechanism property:" + mechanism); 173 this.saslMechanism = mechanism.substring(idx+1, mechanism [all...] |
/forgerock/opendj2.6.2/src/server/org/opends/server/tools/ |
H A D | LDAPConnectionOptions.java | 159 * Set the SASL mechanism used for authentication. 161 * @param mechanism The SASL mechanism string, in "name=value" form. 163 * @return <CODE>true</CODE> if the SASL mechanism was set, or 166 public boolean setSASLMechanism(String mechanism) argument 168 int idx = mechanism.indexOf("="); 171 System.err.println("Invalid SASL mechanism property:" + mechanism); 174 this.saslMechanism = mechanism.substring(idx+1, mechanism [all...] |
/forgerock/opendj2-jel-hg/src/server/org/opends/server/tools/ |
H A D | LDAPConnectionOptions.java | 159 * Set the SASL mechanism used for authentication. 161 * @param mechanism The SASL mechanism string, in "name=value" form. 163 * @return <CODE>true</CODE> if the SASL mechanism was set, or 166 public boolean setSASLMechanism(String mechanism) argument 168 int idx = mechanism.indexOf("="); 171 System.err.println("Invalid SASL mechanism property:" + mechanism); 174 this.saslMechanism = mechanism.substring(idx+1, mechanism [all...] |
/forgerock/opendj2-hg/src/server/org/opends/server/tools/ |
H A D | LDAPConnectionOptions.java | 158 * Set the SASL mechanism used for authentication. 160 * @param mechanism The SASL mechanism string, in "name=value" form. 162 * @return <CODE>true</CODE> if the SASL mechanism was set, or 165 public boolean setSASLMechanism(String mechanism) argument 167 int idx = mechanism.indexOf("="); 170 System.err.println("Invalid SASL mechanism property:" + mechanism); 173 this.saslMechanism = mechanism.substring(idx+1, mechanism [all...] |
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/tools/ |
H A D | LDAPConnectionOptions.java | 152 * Set the SASL mechanism used for authentication. 154 * @param mechanism The SASL mechanism string, in "name=value" form. 156 * @return <CODE>true</CODE> if the SASL mechanism was set, or 159 public boolean setSASLMechanism(String mechanism) argument 161 int idx = mechanism.indexOf("="); 164 System.err.println("Invalid SASL mechanism property:" + mechanism); 167 this.saslMechanism = mechanism.substring(idx+1, mechanism [all...] |