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 |
|
package issrg.pba; |
33 |
|
|
34 |
|
import java.util.Vector; |
35 |
|
import issrg.pba.rbac.*; |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
|
|
| 72.2% |
Uncovered Elements: 5 (18) |
Complexity: 1 |
Complexity Density: 0.8 |
|
40 |
|
public class DefaultParsedToken implements ParsedToken { |
41 |
|
issrg.utils.repository.Entry holder; |
42 |
|
issrg.utils.repository.TokenLocator issuer; |
43 |
|
Credentials creds; |
44 |
|
boolean noRevAvail; |
45 |
|
|
46 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
47 |
0
|
protected DefaultParsedToken(){}... |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
@param |
54 |
|
@param |
55 |
|
@param |
56 |
|
@param |
57 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
666
|
public DefaultParsedToken(issrg.utils.repository.Entry holder, issrg.utils.repository.TokenLocator issuer, Credentials creds){... |
59 |
666
|
this(holder,issuer,creds,true); |
60 |
|
} |
|
|
| 100% |
Uncovered Elements: 0 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
61 |
2523
|
public DefaultParsedToken(issrg.utils.repository.Entry holder, issrg.utils.repository.TokenLocator issuer, Credentials creds, boolean revocable){... |
62 |
2523
|
this.holder=holder; |
63 |
2523
|
this.issuer=issuer; |
64 |
2523
|
this.creds = creds; |
65 |
2523
|
noRevAvail = revocable; |
66 |
|
} |
67 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
68 |
1699
|
public Credentials getCredentials(){ ... |
69 |
1699
|
return creds; |
70 |
|
} |
71 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
72 |
3224
|
public issrg.utils.repository.Entry getHolder(){... |
73 |
3224
|
return holder; |
74 |
|
} |
75 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
2181
|
public issrg.utils.repository.TokenLocator getIssuerTokenLocator(){... |
77 |
2181
|
return issuer; |
78 |
|
} |
79 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
0
|
public String toString(){... |
81 |
0
|
return "Authorisation Token issued by "+getIssuerTokenLocator().getEntry().getEntryName().getName()+" to "+getHolder().getEntryName().getName(); |
82 |
|
} |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
0
|
public boolean isRevocable() {... |
85 |
0
|
return noRevAvail; |
86 |
|
} |
87 |
|
|
88 |
|
|
89 |
|
|
90 |
|
|
91 |
|
|
92 |
|
} |