1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.util;
17
18 import java.io.File;
19 import java.util.List;
20
21 import org.junit.Test;
22 import org.kuali.common.util.secure.SSHUtils;
23 import org.slf4j.Logger;
24 import org.slf4j.LoggerFactory;
25
26 public class SSHUtilsTest {
27 private static final Logger logger = LoggerFactory.getLogger(SSHUtilsTest.class);
28
29 @Test
30 public void test() {
31 try {
32 List<File> files = SSHUtils.getDefaultPrivateKeys();
33 for (File file : files) {
34 logger.info(file.getAbsolutePath());
35 }
36 } catch (Exception e) {
37 e.printStackTrace();
38 }
39 }
40 }