org.mozilla.jss.tests
public class JSS_SSLClient extends Object
Nested Class Summary | |
---|---|
class | JSS_SSLClient.HandshakeListener
SSL Handshake Listeren implementation. |
Constructor Summary | |
---|---|
JSS_SSLClient()
Default Constructor, do not use. |
Method Summary | |
---|---|
void | clearHandshakeCompleted()
Clear handshakeCompleted flag to indicate
that the system is now ready for another
socket connection. |
void | doIt()
Initialize and create a socket connection to
SSLServer using the set parameters. |
static String | getCertDbPath()
Fetch the cert db path name |
boolean | getSuccess()
Set status return value to success. |
boolean | isHandshakeCompleted()
Return true if handshake is completed
else return false; |
static void | main(String[] args)
Main method. |
void | setBypass(boolean bypass)
Enable/disable Test Cert Callback. |
static void | setCertDbPath(String aCertDbPath)
Initialize the cert db path name |
void | setCipher(int aCipher)
Initialize the desired cipher to be set
on the socket. |
void | setClientCertNick(String aClientCertNick)
Set client certificate |
void | setEOF(String fEof)
Set EOF for closinng server socket |
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. |
Returns: String CertDbPath
Returns: boolean handshake status
Parameters: boolean
Parameters: String CertDbPath
Parameters: int Cipher
Parameters: String Certificate Nick Name
Parameters: null for closing server socket
Parameters: String ServerName
Parameters: String passwords
Parameters: int port
Parameters: boolean