Package org.mozilla.jss.tests
Class JSSE_SSLClient
- java.lang.Object
-
- org.mozilla.jss.tests.JSSE_SSLClient
-
public class JSSE_SSLClient extends java.lang.Object
This program connects to any SSL Server to exercise all ciphers supported by JSSE for a given JDK/JRE version. The result is listing of common ciphers between the server and this JSSE client.
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description JSSE_SSLClient()
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureCipherSuites(java.lang.String server, java.lang.String CipherSuite)
java.lang.String
getKeystoreLoc()
Get the location of rsa.pfxboolean
isServerAlive()
static void
main(java.lang.String[] args)
Main method for local unit testing.void
outputCipherResults()
void
sendServerShutdownMsg()
sendServerShutdownMsgvoid
setCipherSuite(java.lang.String fCipherSuite)
Set the cipher suite name to use.void
setHost(java.lang.String fHost)
Set the host name to connect to.void
setKeystoreLoc(java.lang.String fKeystoreLoc)
Set the location of rsa.pfxvoid
setPort(int fPort)
Set the port number to connect to.void
setSslRevision(java.lang.String fSslRevision)
Set the protocol type and revisionvoid
testCiphersuites()
Test communication with SSL server S
-
-
-
Method Detail
-
setSslRevision
public void setSslRevision(java.lang.String fSslRevision)
Set the protocol type and revision- Parameters:
fSslRevision
-
-
setHost
public void setHost(java.lang.String fHost)
Set the host name to connect to.- Parameters:
fHost
-
-
setPort
public void setPort(int fPort)
Set the port number to connect to.- Parameters:
fPort
-
-
setCipherSuite
public void setCipherSuite(java.lang.String fCipherSuite)
Set the cipher suite name to use.- Parameters:
fCipherSuite
-
-
setKeystoreLoc
public void setKeystoreLoc(java.lang.String fKeystoreLoc)
Set the location of rsa.pfx- Parameters:
fKeystoreLoc
-
-
getKeystoreLoc
public java.lang.String getKeystoreLoc()
Get the location of rsa.pfx- Returns:
- String fKeystoreLoc
-
isServerAlive
public boolean isServerAlive()
-
testCiphersuites
public void testCiphersuites()
Test communication with SSL server S
-
configureCipherSuites
public void configureCipherSuites(java.lang.String server, java.lang.String CipherSuite)
-
sendServerShutdownMsg
public void sendServerShutdownMsg()
sendServerShutdownMsg
-
outputCipherResults
public void outputCipherResults()
-
main
public static void main(java.lang.String[] args)
Main method for local unit testing.
-
-