1 |
|
package issrg.pba; |
2 |
|
|
3 |
|
import issrg.pba.rbac.policies.Subtree; |
4 |
|
import issrg.utils.repository.Entry; |
5 |
|
import issrg.utils.repository.TokenLocator; |
6 |
|
|
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 1 |
Complexity Density: 0.8 |
|
7 |
|
public class WebDAVRevocableDelegatableParsedToken extends |
8 |
|
WebDAVRevocableParsedToken implements DelegatableToken { |
9 |
|
Subtree subjectDomain; |
10 |
|
Credentials delegateableCredentials; |
11 |
|
int depth; |
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
12 |
0
|
public WebDAVRevocableDelegatableParsedToken() {... |
13 |
|
|
14 |
|
} |
15 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
16 |
0
|
public WebDAVRevocableDelegatableParsedToken(Entry holder,... |
17 |
|
TokenLocator issuer, Credentials creds, boolean revocable) { |
18 |
0
|
super(holder, issuer, creds, revocable); |
19 |
|
} |
20 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
21 |
0
|
public WebDAVRevocableDelegatableParsedToken(Entry holder,... |
22 |
|
TokenLocator issuer, Credentials creds, String revLoc, |
23 |
|
String certLoc, byte[] ac, boolean revocable) { |
24 |
0
|
super(holder, issuer, creds, revLoc, certLoc, ac, revocable); |
25 |
|
} |
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
26 |
0
|
public WebDAVRevocableDelegatableParsedToken(Entry holder,... |
27 |
|
TokenLocator issuer, |
28 |
|
Credentials creds, |
29 |
|
Credentials delegateableCredentials, |
30 |
|
Subtree subjectDomain, |
31 |
|
int depth, |
32 |
|
String revLoc, |
33 |
|
String certLoc, |
34 |
|
byte[] ac, |
35 |
|
boolean revocable) { |
36 |
0
|
super(holder, issuer, creds, revLoc, certLoc, ac, revocable); |
37 |
0
|
this.delegateableCredentials = delegateableCredentials; |
38 |
0
|
this.subjectDomain = subjectDomain; |
39 |
0
|
this.depth = depth; |
40 |
|
} |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
42 |
0
|
public Credentials getDelegateableCredentials() {... |
43 |
0
|
return delegateableCredentials; |
44 |
|
} |
45 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
46 |
0
|
public Subtree getSubjectDomain(){... |
47 |
0
|
return subjectDomain; |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0
|
public int getDepth() {... |
51 |
0
|
return depth; |
52 |
|
} |
53 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
54 |
0
|
public String toString(){... |
55 |
0
|
return "Authorisation token issued by "+getIssuerTokenLocator().getEntry().getEntryName().getName()+" to "+getHolder().getEntryName().getName()+": "+getCredentials().toString() + "; the holder can delegate "+ getDelegateableCredentials() + " " + getDepth() + " levels down to subjects from domain "+subjectDomain; |
56 |
|
} |
57 |
|
|
58 |
|
} |