org.mozilla.jss.tests

Class JSSE_SSLClient

public class JSSE_SSLClient extends 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.
Constructor Summary
JSSE_SSLClient()
Default constructor.
Method Summary
voidconfigureCipherSuites(String server, String CipherSuite)
StringgetKeystoreLoc()
Get the location of rsa.pfx
booleanisServerAlive()
static voidmain(String[] args)
Main method for local unit testing.
voidoutputCipherResults()
voidsendServerShutdownMsg()
sendServerShutdownMsg
voidsetCipherSuite(String fCipherSuite)
Set the cipher suite name to use.
voidsetHost(String fHost)
Set the host name to connect to.
voidsetKeystoreLoc(String fKeystoreLoc)
Set the location of rsa.pfx
voidsetPort(int fPort)
Set the port number to connect to.
voidsetSslRevision(String fSslRevision)
Set the protocol type and revision
voidtestCiphersuites()
Test communication with SSL server S

Constructor Detail

JSSE_SSLClient

public JSSE_SSLClient()
Default constructor.

Method Detail

configureCipherSuites

public void configureCipherSuites(String server, String CipherSuite)

getKeystoreLoc

public String getKeystoreLoc()
Get the location of rsa.pfx

Returns: String fKeystoreLoc

isServerAlive

public boolean isServerAlive()

main

public static void main(String[] args)
Main method for local unit testing.

outputCipherResults

public void outputCipherResults()

sendServerShutdownMsg

public void sendServerShutdownMsg()
sendServerShutdownMsg

setCipherSuite

public void setCipherSuite(String fCipherSuite)
Set the cipher suite name to use.

Parameters: String cipherSuiteName

setHost

public void setHost(String fHost)
Set the host name to connect to.

Parameters: String hostname

setKeystoreLoc

public void setKeystoreLoc(String fKeystoreLoc)
Set the location of rsa.pfx

Parameters: String fKeystoreLoc

setPort

public void setPort(int fPort)
Set the port number to connect to.

Parameters: int portnumber

setSslRevision

public void setSslRevision(String fSslRevision)
Set the protocol type and revision

Parameters: String sslRevision

testCiphersuites

public void testCiphersuites()
Test communication with SSL server S