MCPcopy Create free account
hub / github.com/annmuor/jnode / pktpass

Method pktpass

jnode-core/src/jnode/robot/AreaFix.java:151–159  ·  view source on GitHub ↗
(Link link, String newpwd)

Source from the content-addressed store, hash-verified

149 }
150
151 private String pktpass(Link link, String newpwd) {
152 if (newpwd.length() > 3 && newpwd.length() < 9) {
153 link.setPaketPassword(newpwd);
154 ORMManager.get(Link.class).update(link);
155 return "Your packet password was changed to " + newpwd + "\n";
156 } else {
157 return "Your packet password must be between 4 and 8 chars length\n";
158 }
159 }
160
161 protected String afxpass(Link link, String newpwd) {
162 if (newpwd.length() > 3 && newpwd.length() < 17) {

Callers 1

executeMethod · 0.95

Calls 3

getMethod · 0.95
setPaketPasswordMethod · 0.80
updateMethod · 0.80

Tested by

no test coverage detected