1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package org.xwiki.crypto.signer.param; |
22 |
|
|
23 |
|
import java.util.ArrayList; |
24 |
|
import java.util.Collection; |
25 |
|
|
26 |
|
import org.xwiki.crypto.pkix.CertifyingSigner; |
27 |
|
import org.xwiki.crypto.pkix.params.CertifiedPublicKey; |
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
@version |
33 |
|
@since |
34 |
|
|
|
|
| 75% |
Uncovered Elements: 6 (24) |
Complexity: 9 |
Complexity Density: 0.6 |
|
35 |
|
public class CMSSignedDataGeneratorParameters |
36 |
|
{ |
37 |
|
private Collection<CMSSignerInfo> signatures = new ArrayList<CMSSignerInfo>(); |
38 |
|
|
39 |
|
private Collection<CertifyingSigner> signers = new ArrayList<CertifyingSigner>(); |
40 |
|
|
41 |
|
private Collection<CertifiedPublicKey> certificates = new ArrayList<CertifiedPublicKey>(); |
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
@param |
47 |
|
@return |
48 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
49 |
2 |
public CMSSignedDataGeneratorParameters addSignature(CMSSignerInfo signer)... |
50 |
|
{ |
51 |
2 |
this.signatures.add(signer); |
52 |
2 |
return this; |
53 |
|
} |
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
@param |
59 |
|
@return |
60 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
61 |
7 |
public CMSSignedDataGeneratorParameters addSigner(CertifyingSigner signer)... |
62 |
|
{ |
63 |
7 |
this.signers.add(signer); |
64 |
7 |
return this; |
65 |
|
} |
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
@param |
71 |
|
@return |
72 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
73 |
0 |
public CMSSignedDataGeneratorParameters addSignatures(Collection<CMSSignerInfo> signers)... |
74 |
|
{ |
75 |
0 |
this.signatures.addAll(signers); |
76 |
0 |
return this; |
77 |
|
} |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
|
@param |
83 |
|
@return |
84 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
85 |
0 |
public CMSSignedDataGeneratorParameters addSigners(Collection<CertifyingSigner> signers)... |
86 |
|
{ |
87 |
0 |
this.signers.addAll(signers); |
88 |
0 |
return this; |
89 |
|
} |
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
@param |
95 |
|
@return |
96 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
97 |
7 |
public CMSSignedDataGeneratorParameters addCertificate(CertifiedPublicKey certificate)... |
98 |
|
{ |
99 |
7 |
this.certificates.add(certificate); |
100 |
7 |
return this; |
101 |
|
} |
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
@param |
107 |
|
@return |
108 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
109 |
1 |
public CMSSignedDataGeneratorParameters addCertificates(Collection<CertifiedPublicKey> certificates)... |
110 |
|
{ |
111 |
1 |
this.certificates.addAll(certificates); |
112 |
1 |
return this; |
113 |
|
} |
114 |
|
|
115 |
|
|
116 |
|
@return |
117 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
118 |
9 |
public Collection<CertifiedPublicKey> getCertificates()... |
119 |
|
{ |
120 |
9 |
return this.certificates; |
121 |
|
} |
122 |
|
|
123 |
|
|
124 |
|
@return |
125 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
126 |
13 |
public Collection<CMSSignerInfo> getSignatures()... |
127 |
|
{ |
128 |
13 |
return this.signatures; |
129 |
|
} |
130 |
|
|
131 |
|
|
132 |
|
@return |
133 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
134 |
9 |
public Collection<CertifyingSigner> getSigners()... |
135 |
|
{ |
136 |
9 |
return this.signers; |
137 |
|
} |
138 |
|
} |