1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.crypto.script; |
21 |
|
|
22 |
|
import javax.inject.Named; |
23 |
|
import javax.inject.Singleton; |
24 |
|
|
25 |
|
import org.xwiki.component.annotation.Component; |
26 |
|
import org.xwiki.crypto.pkix.params.x509certificate.extension.X509DirectoryName; |
27 |
|
import org.xwiki.crypto.pkix.params.x509certificate.extension.X509GeneralName; |
28 |
|
import org.xwiki.crypto.pkix.params.x509certificate.extension.X509IpAddress; |
29 |
|
import org.xwiki.crypto.pkix.params.x509certificate.extension.X509Rfc822Name; |
30 |
|
import org.xwiki.crypto.pkix.params.x509certificate.extension.X509URI; |
31 |
|
import org.xwiki.script.service.ScriptService; |
32 |
|
import org.xwiki.stability.Unstable; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
@version |
38 |
|
@since |
39 |
|
|
40 |
|
@Component |
41 |
|
@Named(CryptoScriptService.ROLEHINT + '.' + X509NameScriptService.ROLEHINT) |
42 |
|
@Singleton |
43 |
|
@Unstable |
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
44 |
|
public class X509NameScriptService implements ScriptService |
45 |
|
{ |
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
public static final String ROLEHINT = "x509name"; |
50 |
|
|
51 |
|
|
52 |
|
@link |
53 |
|
|
54 |
|
@param |
55 |
|
@return@link |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0 |
public X509Rfc822Name createX509Rfc822Name(String email) {... |
58 |
0 |
return new X509Rfc822Name(email); |
59 |
|
} |
60 |
|
|
61 |
|
|
62 |
|
@link |
63 |
|
|
64 |
|
@param |
65 |
|
@return@link |
66 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
0 |
public X509DirectoryName createX509DirectoryName(String dn) {... |
68 |
0 |
return new X509DirectoryName(dn); |
69 |
|
} |
70 |
|
|
71 |
|
|
72 |
|
@link |
73 |
|
|
74 |
|
@param |
75 |
|
@return@link |
76 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
77 |
0 |
public X509IpAddress createX509IpAddress(String ip) {... |
78 |
0 |
return new X509IpAddress(ip); |
79 |
|
} |
80 |
|
|
81 |
|
|
82 |
|
@link |
83 |
|
|
84 |
|
@param |
85 |
|
@return@link |
86 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
87 |
0 |
public X509URI createX509URI(String uri) {... |
88 |
0 |
return new X509URI(uri); |
89 |
|
} |
90 |
|
} |