Package net.sf.basedb.opengrid
Class SshUtil
java.lang.Object
net.sf.basedb.opengrid.SshUtil
Interal class with utility functions for SSH connections.
- Since:
- 1.0
- Author:
- nicklas
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Pattern
Deprecated.(package private) static final net.schmizz.sshj.Config
Default configuration for SSH connections. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final 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