org.mozilla.jss.tests
public class JSS_SelfServClient extends Object implements ConstantsBase, Constants
Nested Class Summary | |
---|---|
class | JSS_SelfServClient.HandshakeListener
SSL Handshake Listeren implementation. |
Constructor Summary | |
---|---|
JSS_SelfServClient()
Default Constructor. |
Method Summary | |
---|---|
void | clearHandshakeCompleted()
Clear handshakeCompleted flag to indicate
that the system is now ready for another
socket connection. |
void | closeAllSockets()
closes the SSLSocket |
void | configureCipherSuites(String server) |
void | configureDefaultSSLOptions() |
void | createSSLConnections(int numToCreate)
Initialize given number of SSLSocket client connection to the
SSLServer using the set parameters. |
boolean | getBypassPKCS11() |
int | getSockTotal()
returns the total number SSLSockets created. |
boolean | getSuccess()
Set status return value to success. |
boolean | getTestCiphers() |
boolean | isHandshakeCompleted()
Return true if handshake is completed
else return false; |
boolean | isServerAlive() |
static void | main(String[] args)
Main method. |
void | outputCipherResults() |
void | sendServerShutdownMsg()
sendServerShutdownMsg |
void | setBypassPKCS11(boolean f) |
void | setCertDbPath(String aCertDbPath)
Initialize the cert db path name |
void | setCipher(int aCipher)
Initialize the desired ciphersuite to be set
on the socket. |
void | setClientCertNick(String aClientCertNick)
Set client certificate |
void | setFailure()
Set status return value to false. |
void | setHandshakeCompleted()
Set handshakeCompleted flag to indicate
that the socket handshake is coplete. |
void | setHostName(String aHostName)
Initialize the hostname to run the server |
void | setPasswordFile(String aPasswordFile)
Initialize the passwords file name |
void | setPort(int aPort)
Initialize the port to run the server |
void | setTestCertCallback(boolean aTestCertCallback)
Enable/disable Test Cert Callback. |
void | setTestCiphers(boolean t) |
void | setVerbose(boolean v) |
void | testCiphersuites(int numOfThreads)
For every enabled ciphersuite created numOfThreads connections. |
boolean | testJSSCiphersMatchNSS()
returns true if JSS is sync with NSS ciphersuites. |
Returns: boolean handshake status
Parameters: String CertDbPath
Parameters: int Cipher
Parameters: String Certificate Nick Name
Parameters: String ServerName
Parameters: String passwords
Parameters: int port
Parameters: boolean