public class Test extends Object
Constructor and Description |
---|
Test() |
Modifier and Type | Method and Description |
---|---|
static void |
checkSSH(String user,
String host,
String keyfile)
Attempt to connect to a remote host using a given user name.
|
static void |
downloadURL(String url,
String cookies)
Download a file using a URL
|
static void |
downloadWithHTTP(String url,
String cookies)
Download a file using a URL
|
static void |
downloadWithHTTPS(String url,
String cookies)
Download a file using a URL
|
static void |
keyLengthDetector()
Determine allowed key length for ciphers.
|
static void |
keyPairGenerate()
Attempt to generate a DH key pair to see if cryptographic environment is set correctly.
|
static void |
main(String[] args)
Command-line interface.
|
void |
showHelp()
Show the help for the tool.
|
static void |
showSupportedProtocols()
Show support protocols
|
static void |
testConnect(String user,
String host,
String keyfile)
Attempt to connect to a remote host using a given user name.
|
static void |
trustAllCerts()
Configure HttpsURLConnection to trust all certs.
|
public static void main(String[] args)
args
- command-line arguments.public void showHelp()
public static void trustAllCerts() throws Exception
Exception
public static void showSupportedProtocols()
public static void downloadURL(String url, String cookies) throws Exception
Exception
public static void downloadWithHTTPS(String url, String cookies) throws Exception
Exception
public static void downloadWithHTTP(String url, String cookies) throws Exception
Exception
public static void keyLengthDetector()
public static void keyPairGenerate()
public static void checkSSH(String user, String host, String keyfile) throws Exception
user
- the name of the user to user when connecting.host
- the name of the host to connect to.keyfile
- the name of the file containing the private key.Exception
- if any error occurs.public static void testConnect(String user, String host, String keyfile)
user
- the name of the user to user when connecting.host
- the name of the host to connect to.keyfile
- the name of the file containing the private key.Exception
- if any error occurs.Copyright © 2014-2016 Regents University of California. All Rights Reserved.