Clover Coverage Report - Atlassian Trusted Apps(Aggregated)
Coverage timestamp: Tue Jun 9 2009 19:34:44 CDT
14   60   7   2
0   43   0.5   7
7     1  
1    
 
 
  DefaultEncryptedCertificate       Line # 3 14 7 90.5% 0.9047619
 
  (28)
 
1    package com.atlassian.security.auth.trustedapps;
2   
 
3    public class DefaultEncryptedCertificate implements EncryptedCertificate
4    {
5    private final String id;
6    private final String key;
7    private final String certificate;
8    private final Integer protocolVersion;
9    private final String magic;
10   
11    /**
12    * Constructor for protocol '0' certificates
13    *
14    * @param id The application id
15    * @param key The application public key
16    * @param certificate The certificate string
17    */
 
18  0 toggle public DefaultEncryptedCertificate(String id, String key, String certificate)
19    {
20  0 this(id, key, certificate, null, null);
21    }
22   
 
23  36 toggle public DefaultEncryptedCertificate(String id, String key, String certificate, Integer protocolVersion, String magic)
24    {
25  36 Null.not("id", id);
26  36 Null.not("key", key);
27  36 Null.not("certificate", certificate);
28   
29  36 this.id = id;
30  36 this.key = key;
31  36 this.certificate = certificate;
32  36 this.protocolVersion = protocolVersion;
33  36 this.magic = magic;
34    }
35   
 
36  36 toggle public String getCertificate()
37    {
38  36 return certificate;
39    }
40   
 
41  10 toggle public String getID()
42    {
43  10 return id;
44    }
45   
 
46  29 toggle public String getSecretKey()
47    {
48  29 return key;
49    }
50   
 
51  45 toggle public Integer getProtocolVersion()
52    {
53  45 return protocolVersion;
54    }
55   
 
56  28 toggle public String getMagicNumber()
57    {
58  28 return magic;
59    }
60    }