1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
package issrg.SAWS.callback; |
47 |
|
|
48 |
|
import javax.security.auth.callback.Callback; |
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
@author |
54 |
|
@version |
55 |
|
|
56 |
|
|
|
|
| 81.8% |
Uncovered Elements: 4 (22) |
Complexity: 1 |
Complexity Density: 0.69 |
|
57 |
|
public class SAWSPasswordCallback implements Callback, java.io.Serializable { |
58 |
|
|
59 |
|
private String prompt; |
60 |
|
private char[] password; |
61 |
|
private int passwordShares; |
62 |
|
private int currentPasswordShare; |
63 |
|
private boolean echoOn; |
64 |
|
private String type; |
65 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
66 |
16
|
public SAWSPasswordCallback(String prompt, int passwordShares,... |
67 |
|
int currentPasswordShare, boolean echoOn, String type) { |
68 |
|
|
69 |
16
|
this.prompt = prompt; |
70 |
16
|
this.passwordShares = passwordShares; |
71 |
16
|
this.currentPasswordShare = currentPasswordShare; |
72 |
16
|
this.echoOn = echoOn; |
73 |
16
|
this.type = type; |
74 |
|
} |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0
|
public String getPrompt() {... |
77 |
0
|
return prompt; |
78 |
|
} |
79 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
32
|
public String getType() {... |
81 |
32
|
return this.type; |
82 |
|
} |
83 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
16
|
public char[] getPassword() {... |
85 |
16
|
return password; |
86 |
|
} |
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
16
|
public void setPassword(char[] password) {... |
89 |
16
|
this.password = password; |
90 |
|
} |
91 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
32
|
public int getPasswordShares() {... |
93 |
32
|
return passwordShares; |
94 |
|
} |
95 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
96 |
32
|
public int getCurrentPasswordShare() {... |
97 |
32
|
return currentPasswordShare; |
98 |
|
} |
99 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
0
|
public boolean isEchoOn() {... |
101 |
0
|
return echoOn; |
102 |
|
} |
103 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
104 |
16
|
public void clearPassword() {... |
105 |
16
|
this.password = null; |
106 |
|
} |
107 |
|
} |