1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.crypto.signer.params; |
21 |
|
|
22 |
|
import org.xwiki.crypto.params.cipher.asymmetric.AsymmetricCipherParameters; |
23 |
|
import org.xwiki.crypto.params.cipher.asymmetric.AsymmetricKeyParameters; |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
|
|
| 62.5% |
Uncovered Elements: 6 (16) |
Complexity: 6 |
Complexity Density: 0.6 |
|
31 |
|
public class PssSignerParameters implements AsymmetricCipherParameters |
32 |
|
{ |
33 |
|
private final AsymmetricKeyParameters keyParams; |
34 |
|
|
35 |
|
private final PssParameters pssParams; |
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
@param |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
42 |
0 |
public PssSignerParameters(AsymmetricKeyParameters keyParams)... |
43 |
|
{ |
44 |
0 |
this.keyParams = keyParams; |
45 |
0 |
this.pssParams = new PssParameters(); |
46 |
|
} |
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
@param |
52 |
|
@param |
53 |
|
@param |
54 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
55 |
12 |
public PssSignerParameters(AsymmetricKeyParameters keyParams, String hashAlgorithm, int saltLength)... |
56 |
|
{ |
57 |
12 |
this.keyParams = keyParams; |
58 |
12 |
this.pssParams = new PssParameters(hashAlgorithm, saltLength); |
59 |
|
} |
60 |
|
|
61 |
|
|
62 |
|
|
63 |
|
|
64 |
|
@param |
65 |
|
@param |
66 |
|
@param |
67 |
|
@param |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
69 |
0 |
public PssSignerParameters(AsymmetricKeyParameters keyParams, String hashAlgorithm, String maskGenAlgorithm,... |
70 |
|
int saltLength) |
71 |
|
{ |
72 |
0 |
this.keyParams = keyParams; |
73 |
0 |
this.pssParams = new PssParameters(hashAlgorithm, maskGenAlgorithm, saltLength); |
74 |
|
} |
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
@param |
80 |
|
@param |
81 |
|
@param |
82 |
|
@param |
83 |
|
@param |
84 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
85 |
4 |
public PssSignerParameters(AsymmetricKeyParameters keyParams, String hashAlgorithm, String maskGenAlgorithm,... |
86 |
|
int saltLength, int trailerField) |
87 |
|
{ |
88 |
4 |
this.keyParams = keyParams; |
89 |
4 |
this.pssParams = new PssParameters(hashAlgorithm, maskGenAlgorithm, saltLength, trailerField); |
90 |
|
} |
91 |
|
|
92 |
|
|
93 |
|
@return |
94 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
16 |
public AsymmetricKeyParameters getKeyParameters()... |
96 |
|
{ |
97 |
16 |
return this.keyParams; |
98 |
|
} |
99 |
|
|
100 |
|
|
101 |
|
@return |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
32 |
public PssParameters getPssParameters()... |
104 |
|
{ |
105 |
32 |
return this.pssParams; |
106 |
|
} |
107 |
|
} |