Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | /* Any copyright is dedicated to the Public Domain. |
michael@0 | 2 | http://creativecommons.org/publicdomain/zero/1.0/ */ |
michael@0 | 3 | |
michael@0 | 4 | package org.mozilla.gecko.background.sync.helpers; |
michael@0 | 5 | |
michael@0 | 6 | import org.mozilla.gecko.sync.repositories.domain.PasswordRecord; |
michael@0 | 7 | |
michael@0 | 8 | public class PasswordHelpers { |
michael@0 | 9 | |
michael@0 | 10 | public static PasswordRecord createPassword1() { |
michael@0 | 11 | PasswordRecord rec = new PasswordRecord(); |
michael@0 | 12 | rec.encType = "some type"; |
michael@0 | 13 | rec.formSubmitURL = "http://submit.html"; |
michael@0 | 14 | rec.hostname = "http://hostname"; |
michael@0 | 15 | rec.httpRealm = "httpRealm"; |
michael@0 | 16 | rec.encryptedPassword ="12345"; |
michael@0 | 17 | rec.passwordField = "box.pass.field"; |
michael@0 | 18 | rec.timeCreated = 111111111L; |
michael@0 | 19 | rec.timeLastUsed = 123412352435L; |
michael@0 | 20 | rec.timePasswordChanged = 121111111L; |
michael@0 | 21 | rec.timesUsed = 5L; |
michael@0 | 22 | rec.encryptedUsername = "jvoll"; |
michael@0 | 23 | rec.usernameField = "box.user.field"; |
michael@0 | 24 | return rec; |
michael@0 | 25 | } |
michael@0 | 26 | |
michael@0 | 27 | public static PasswordRecord createPassword2() { |
michael@0 | 28 | PasswordRecord rec = new PasswordRecord(); |
michael@0 | 29 | rec.encType = "some type"; |
michael@0 | 30 | rec.formSubmitURL = "http://submit2.html"; |
michael@0 | 31 | rec.hostname = "http://hostname2"; |
michael@0 | 32 | rec.httpRealm = "httpRealm2"; |
michael@0 | 33 | rec.encryptedPassword ="54321"; |
michael@0 | 34 | rec.passwordField = "box.pass.field2"; |
michael@0 | 35 | rec.timeCreated = 12111111111L; |
michael@0 | 36 | rec.timeLastUsed = 123412352213L; |
michael@0 | 37 | rec.timePasswordChanged = 123111111111L; |
michael@0 | 38 | rec.timesUsed = 2L; |
michael@0 | 39 | rec.encryptedUsername = "rnewman"; |
michael@0 | 40 | rec.usernameField = "box.user.field2"; |
michael@0 | 41 | return rec; |
michael@0 | 42 | } |
michael@0 | 43 | |
michael@0 | 44 | public static PasswordRecord createPassword3() { |
michael@0 | 45 | PasswordRecord rec = new PasswordRecord(); |
michael@0 | 46 | rec.encType = "some type3"; |
michael@0 | 47 | rec.formSubmitURL = "http://submit3.html"; |
michael@0 | 48 | rec.hostname = "http://hostname3"; |
michael@0 | 49 | rec.httpRealm = "httpRealm3"; |
michael@0 | 50 | rec.encryptedPassword ="54321"; |
michael@0 | 51 | rec.passwordField = "box.pass.field3"; |
michael@0 | 52 | rec.timeCreated = 100000000000L; |
michael@0 | 53 | rec.timeLastUsed = 123412352213L; |
michael@0 | 54 | rec.timePasswordChanged = 110000000000L; |
michael@0 | 55 | rec.timesUsed = 2L; |
michael@0 | 56 | rec.encryptedUsername = "rnewman"; |
michael@0 | 57 | rec.usernameField = "box.user.field3"; |
michael@0 | 58 | return rec; |
michael@0 | 59 | } |
michael@0 | 60 | |
michael@0 | 61 | public static PasswordRecord createPassword4() { |
michael@0 | 62 | PasswordRecord rec = new PasswordRecord(); |
michael@0 | 63 | rec.encType = "some type"; |
michael@0 | 64 | rec.formSubmitURL = "http://submit4.html"; |
michael@0 | 65 | rec.hostname = "http://hostname4"; |
michael@0 | 66 | rec.httpRealm = "httpRealm4"; |
michael@0 | 67 | rec.encryptedPassword ="54324"; |
michael@0 | 68 | rec.passwordField = "box.pass.field4"; |
michael@0 | 69 | rec.timeCreated = 101000000000L; |
michael@0 | 70 | rec.timeLastUsed = 123412354444L; |
michael@0 | 71 | rec.timePasswordChanged = 110000000000L; |
michael@0 | 72 | rec.timesUsed = 4L; |
michael@0 | 73 | rec.encryptedUsername = "rnewman4"; |
michael@0 | 74 | rec.usernameField = "box.user.field4"; |
michael@0 | 75 | return rec; |
michael@0 | 76 | } |
michael@0 | 77 | |
michael@0 | 78 | public static PasswordRecord createPassword5() { |
michael@0 | 79 | PasswordRecord rec = new PasswordRecord(); |
michael@0 | 80 | rec.encType = "some type5"; |
michael@0 | 81 | rec.formSubmitURL = "http://submit5.html"; |
michael@0 | 82 | rec.hostname = "http://hostname5"; |
michael@0 | 83 | rec.httpRealm = "httpRealm5"; |
michael@0 | 84 | rec.encryptedPassword ="54325"; |
michael@0 | 85 | rec.passwordField = "box.pass.field5"; |
michael@0 | 86 | rec.timeCreated = 101000000000L; |
michael@0 | 87 | rec.timeLastUsed = 123412352555L; |
michael@0 | 88 | rec.timePasswordChanged = 111111111111L; |
michael@0 | 89 | rec.timesUsed = 5L; |
michael@0 | 90 | rec.encryptedUsername = "jvoll5"; |
michael@0 | 91 | rec.usernameField = "box.user.field5"; |
michael@0 | 92 | return rec; |
michael@0 | 93 | } |
michael@0 | 94 | } |