org.mozilla.jss.tests
Class JSS_FileUploadClient
java.lang.Object
org.mozilla.jss.tests.JSS_FileUploadClient
public class JSS_FileUploadClient
extends java.lang.Object
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.
|
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 | 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.
|
void | setUploadFile(String aUploadFile) - Initialize the name of the file to
be used for testing along with full path.
|
JSS_FileUploadClient
public JSS_FileUploadClient()
Default Constructor, do not use.
clearHandshakeCompleted
public void clearHandshakeCompleted()
Clear handshakeCompleted flag to indicate
that the system is now ready for another
socket connection.
doIt
public void doIt()
throws Exception
Initialize and create a socket connection to
SSLServer using the set parameters.
getSuccess
public boolean getSuccess()
Set status return value to success.
isHandshakeCompleted
public boolean isHandshakeCompleted()
Return true if handshake is completed
else return false;
main
public static void main(String[] args)
Main method. Used for unit testing.
setCertDbPath
public void setCertDbPath(String aCertDbPath)
Initialize the cert db path name
setCipher
public void setCipher(int aCipher)
Initialize the desired cipher to be set
on the socket.
setClientCertNick
public void setClientCertNick(String aClientCertNick)
Set client certificate
setEOF
public void setEOF(String fEof)
Set EOF for closinng server socket
setFailure
public void setFailure()
Set status return value to false.
setHandshakeCompleted
public void setHandshakeCompleted()
Set handshakeCompleted flag to indicate
that the socket handshake is coplete.
setHostName
public void setHostName(String aHostName)
Initialize the hostname to run the server
setPasswordFile
public void setPasswordFile(String aPasswordFile)
Initialize the passwords file name
setPort
public void setPort(int aPort)
Initialize the port to run the server
setTestCertCallback
public void setTestCertCallback(boolean aTestCertCallback)
Enable/disable Test Cert Callback.
setUploadFile
public void setUploadFile(String aUploadFile)
Initialize the name of the file to
be used for testing along with full path.