michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: package org.mozilla.gecko.background.sync.helpers; michael@0: michael@0: import org.mozilla.gecko.sync.repositories.domain.PasswordRecord; michael@0: michael@0: public class PasswordHelpers { michael@0: michael@0: public static PasswordRecord createPassword1() { michael@0: PasswordRecord rec = new PasswordRecord(); michael@0: rec.encType = "some type"; michael@0: rec.formSubmitURL = "http://submit.html"; michael@0: rec.hostname = "http://hostname"; michael@0: rec.httpRealm = "httpRealm"; michael@0: rec.encryptedPassword ="12345"; michael@0: rec.passwordField = "box.pass.field"; michael@0: rec.timeCreated = 111111111L; michael@0: rec.timeLastUsed = 123412352435L; michael@0: rec.timePasswordChanged = 121111111L; michael@0: rec.timesUsed = 5L; michael@0: rec.encryptedUsername = "jvoll"; michael@0: rec.usernameField = "box.user.field"; michael@0: return rec; michael@0: } michael@0: michael@0: public static PasswordRecord createPassword2() { michael@0: PasswordRecord rec = new PasswordRecord(); michael@0: rec.encType = "some type"; michael@0: rec.formSubmitURL = "http://submit2.html"; michael@0: rec.hostname = "http://hostname2"; michael@0: rec.httpRealm = "httpRealm2"; michael@0: rec.encryptedPassword ="54321"; michael@0: rec.passwordField = "box.pass.field2"; michael@0: rec.timeCreated = 12111111111L; michael@0: rec.timeLastUsed = 123412352213L; michael@0: rec.timePasswordChanged = 123111111111L; michael@0: rec.timesUsed = 2L; michael@0: rec.encryptedUsername = "rnewman"; michael@0: rec.usernameField = "box.user.field2"; michael@0: return rec; michael@0: } michael@0: michael@0: public static PasswordRecord createPassword3() { michael@0: PasswordRecord rec = new PasswordRecord(); michael@0: rec.encType = "some type3"; michael@0: rec.formSubmitURL = "http://submit3.html"; michael@0: rec.hostname = "http://hostname3"; michael@0: rec.httpRealm = "httpRealm3"; michael@0: rec.encryptedPassword ="54321"; michael@0: rec.passwordField = "box.pass.field3"; michael@0: rec.timeCreated = 100000000000L; michael@0: rec.timeLastUsed = 123412352213L; michael@0: rec.timePasswordChanged = 110000000000L; michael@0: rec.timesUsed = 2L; michael@0: rec.encryptedUsername = "rnewman"; michael@0: rec.usernameField = "box.user.field3"; michael@0: return rec; michael@0: } michael@0: michael@0: public static PasswordRecord createPassword4() { michael@0: PasswordRecord rec = new PasswordRecord(); michael@0: rec.encType = "some type"; michael@0: rec.formSubmitURL = "http://submit4.html"; michael@0: rec.hostname = "http://hostname4"; michael@0: rec.httpRealm = "httpRealm4"; michael@0: rec.encryptedPassword ="54324"; michael@0: rec.passwordField = "box.pass.field4"; michael@0: rec.timeCreated = 101000000000L; michael@0: rec.timeLastUsed = 123412354444L; michael@0: rec.timePasswordChanged = 110000000000L; michael@0: rec.timesUsed = 4L; michael@0: rec.encryptedUsername = "rnewman4"; michael@0: rec.usernameField = "box.user.field4"; michael@0: return rec; michael@0: } michael@0: michael@0: public static PasswordRecord createPassword5() { michael@0: PasswordRecord rec = new PasswordRecord(); michael@0: rec.encType = "some type5"; michael@0: rec.formSubmitURL = "http://submit5.html"; michael@0: rec.hostname = "http://hostname5"; michael@0: rec.httpRealm = "httpRealm5"; michael@0: rec.encryptedPassword ="54325"; michael@0: rec.passwordField = "box.pass.field5"; michael@0: rec.timeCreated = 101000000000L; michael@0: rec.timeLastUsed = 123412352555L; michael@0: rec.timePasswordChanged = 111111111111L; michael@0: rec.timesUsed = 5L; michael@0: rec.encryptedUsername = "jvoll5"; michael@0: rec.usernameField = "box.user.field5"; michael@0: return rec; michael@0: } michael@0: }