Package net.sf.basedb.opengrid
Class SshUtil
java.lang.Object
net.sf.basedb.opengrid.SshUtil
public final class SshUtil extends Object
Interal class with utility functions for SSH connections.
- Since:
- 1.0
- Author:
- nicklas
-
Field Summary
Fields Modifier and Type Field Description static Pattern
FINGERPRINT_PATTERN
Deprecated.(package private) static net.schmizz.sshj.Config
SSH_CONFIG
Default configuration for SSH connections. -
Constructor Summary
Constructors Constructor Description SshUtil()
-
Method Summary
Modifier and Type Method Description static String
getFingerPrintType(String fingerprint)
Check if the given fingerprint is valid and what type it is.
-
Field Details
-
SSH_CONFIG
static final net.schmizz.sshj.Config SSH_CONFIGDefault configuration for SSH connections. We save this as a static to avoid expensive initialization each time a connection is needed. -
FINGERPRINT_PATTERN
Deprecated.In 1.1, useFileServer.MD5_FINGERPRINT_PATTERN
insteadPattern that matches a SSH fingerprint: 16 pairs of hexadecimal numbers separated with colon.
-
-
Constructor Details
-
SshUtil
public SshUtil()
-
-
Method Details
-
getFingerPrintType
Check if the given fingerprint is valid and what type it is.- Parameters:
fingerprint
- The fingerprint to check- Returns:
- MD5 or SHA256 or null
- Since:
- 1.1
-
FileServer.MD5_FINGERPRINT_PATTERN
instead