File tree 3 files changed +20
-12
lines changed 3 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<properties >
8
8
<maven .test.skip>true</maven .test.skip>
9
- <grid-jcommons .version>2.9 </grid-jcommons .version>
9
+ <grid-jcommons .version>2.10 </grid-jcommons .version>
10
10
</properties >
11
11
12
12
<repositories >
220
220
</excludes >
221
221
</resource >
222
222
223
- </resources >
224
-
225
-
223
+ </resources >
224
+
225
+
226
226
<plugins >
227
227
<plugin >
228
228
<groupId >org.apache.maven.plugins</groupId >
322
322
<artifactId >nesi</artifactId >
323
323
<version >1.0</version >
324
324
</parent >
325
- </project >
325
+ </project >
Original file line number Diff line number Diff line change 1
1
package grith .jgrith .cred ;
2
2
3
+ import grisu .jcommons .dependencies .BouncyCastleTool ;
3
4
import grisu .jcommons .exceptions .CredentialException ;
4
5
import grith .jgrith .cred .callbacks .AbstractCallback ;
5
6
import grith .jgrith .cred .callbacks .StaticCallback ;
6
7
import grith .jgrith .cred .details .FileDetail ;
7
8
import grith .jgrith .cred .details .PasswordDetail ;
8
9
import grith .jgrith .plainProxy .PlainProxy ;
9
-
10
- import java .util .Map ;
11
-
12
10
import org .apache .commons .lang .StringUtils ;
13
11
import org .globus .common .CoGProperties ;
14
12
import org .ietf .jgss .GSSCredential ;
15
13
14
+ import java .util .Map ;
15
+
16
16
public class X509Cred extends AbstractCred {
17
-
17
+
18
18
public static X509Cred create (char [] passphrase ) {
19
-
19
+
20
20
X509Cred temp = new X509Cred ();
21
21
temp .setCallback (new StaticCallback (passphrase ));
22
-
22
+ temp . init ();
23
23
return temp ;
24
-
24
+
25
25
}
26
26
27
+ public static void main (String [] args ) {
28
+
29
+ BouncyCastleTool .initBouncyCastle ();
30
+ X509Cred c = create (args [0 ].toCharArray ());
31
+
32
+ System .out .println (c .getDN ());
33
+ }
34
+
27
35
protected FileDetail certFile = new FileDetail ("X509 certificate file" );
28
36
protected FileDetail keyFile = new FileDetail ("X509 key file" );
29
37
You can’t perform that action at this time.
0 commit comments