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.internal.cms; |
22 |
|
|
23 |
|
import java.math.BigInteger; |
24 |
|
|
25 |
|
import org.bouncycastle.cms.SignerInformation; |
26 |
|
import org.xwiki.crypto.pkix.params.PrincipalIndentifier; |
27 |
|
import org.xwiki.crypto.pkix.params.x509certificate.DistinguishedName; |
28 |
|
import org.xwiki.crypto.signer.param.CMSSignerInfo; |
29 |
|
|
30 |
|
|
31 |
|
@link |
32 |
|
|
33 |
|
@version |
34 |
|
@since |
35 |
|
|
|
|
| 40% |
Uncovered Elements: 6 (10) |
Complexity: 5 |
Complexity Density: 1 |
|
36 |
|
public class BcCMSSignerInfo implements CMSSignerInfo |
37 |
|
{ |
38 |
|
private SignerInformation signerInfo; |
39 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
9 |
BcCMSSignerInfo(SignerInformation signerInfo)... |
41 |
|
{ |
42 |
9 |
this.signerInfo = signerInfo; |
43 |
|
} |
44 |
|
|
45 |
|
|
46 |
|
@return |
47 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
2 |
SignerInformation getSignerInfo()... |
49 |
|
{ |
50 |
2 |
return this.signerInfo; |
51 |
|
} |
52 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
53 |
0 |
@Override... |
54 |
|
public PrincipalIndentifier getIssuer() |
55 |
|
{ |
56 |
0 |
return new DistinguishedName(this.signerInfo.getSID().getIssuer()); |
57 |
|
} |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0 |
@Override... |
60 |
|
public BigInteger getSerialNumber() |
61 |
|
{ |
62 |
0 |
return this.signerInfo.getSID().getSerialNumber(); |
63 |
|
} |
64 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
0 |
@Override... |
66 |
|
public byte[] getSubjectKeyIdentifier() |
67 |
|
{ |
68 |
0 |
return this.signerInfo.getSID().getSubjectKeyIdentifier(); |
69 |
|
} |
70 |
|
} |