Clover Coverage Report
Coverage timestamp: Sun Mar 23 2008 08:24:39 GMT
10   58   1   1.25
0   48   0.8   8
8     1  
1    
 
 
  WebDAVRevocableDelegatableParsedToken       Line # 7 10 1 0% 0.0
 
No Tests
 
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   
 
7    public class WebDAVRevocableDelegatableParsedToken extends
8    WebDAVRevocableParsedToken implements DelegatableToken {
9    Subtree subjectDomain;
10    Credentials delegateableCredentials;
11    int depth;
 
12  0 toggle public WebDAVRevocableDelegatableParsedToken() {
13    // TODO Auto-generated constructor stub
14    }
15   
 
16  0 toggle public WebDAVRevocableDelegatableParsedToken(Entry holder,
17    TokenLocator issuer, Credentials creds, boolean revocable) {
18  0 super(holder, issuer, creds, revocable);
19    }
20   
 
21  0 toggle 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    }
 
26  0 toggle 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   
 
42  0 toggle public Credentials getDelegateableCredentials() {
43  0 return delegateableCredentials;
44    }
45   
 
46  0 toggle public Subtree getSubjectDomain(){
47  0 return subjectDomain;
48    }
49   
 
50  0 toggle public int getDepth() {
51  0 return depth;
52    }
53   
 
54  0 toggle 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    }