|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.cluster.ssh.util.SSHUtil
public class SSHUtil
| Constructor Summary | |
|---|---|
SSHUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
checkString(java.lang.String s)
Convert empty string to null. |
static java.lang.String |
getDefaultKeyFile()
|
static java.lang.String |
getExistingKeyFile()
|
static boolean |
isEncryptedKey(java.lang.String keyFile)
Simple method to validate an encrypted key file |
static void |
register(com.trilead.ssh2.Connection connection)
Registers a connection for cleanup when the plugin is stopped. |
static void |
unregister(com.trilead.ssh2.Connection connection)
Unregisters a connection for cleanup when the plugin is stopped. |
static boolean |
validateKeyFile(java.lang.String file)
This method validates either private or public key file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SSHUtil()
| Method Detail |
|---|
public static void register(com.trilead.ssh2.Connection connection)
connection - The connection.public static void unregister(com.trilead.ssh2.Connection connection)
connection - The connection.public static java.lang.String checkString(java.lang.String s)
public static java.lang.String getExistingKeyFile()
public static java.lang.String getDefaultKeyFile()
public static boolean isEncryptedKey(java.lang.String keyFile)
throws CommandException
CommandException
public static boolean validateKeyFile(java.lang.String file)
throws CommandException
file - the key file
CommandException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||