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