org.mozilla.jss.tests

Class JSS_FileUploadClient

public class JSS_FileUploadClient extends Object

Nested Class Summary
classJSS_FileUploadClient.HandshakeListener
SSL Handshake Listeren implementation.
Constructor Summary
JSS_FileUploadClient()
Default Constructor, do not use.
Method Summary
voidclearHandshakeCompleted()
Clear handshakeCompleted flag to indicate that the system is now ready for another socket connection.
voiddoIt()
Initialize and create a socket connection to SSLServer using the set parameters.
booleangetSuccess()
Set status return value to success.
booleanisHandshakeCompleted()
Return true if handshake is completed else return false;
static voidmain(String[] args)
Main method.
voidsetCertDbPath(String aCertDbPath)
Initialize the cert db path name
voidsetCipher(int aCipher)
Initialize the desired cipher to be set on the socket.
voidsetClientCertNick(String aClientCertNick)
Set client certificate
voidsetEOF(String fEof)
Set EOF for closinng server socket
voidsetFailure()
Set status return value to false.
voidsetHandshakeCompleted()
Set handshakeCompleted flag to indicate that the socket handshake is coplete.
voidsetHostName(String aHostName)
Initialize the hostname to run the server
voidsetPasswordFile(String aPasswordFile)
Initialize the passwords file name
voidsetPort(int aPort)
Initialize the port to run the server
voidsetTestCertCallback(boolean aTestCertCallback)
Enable/disable Test Cert Callback.
voidsetUploadFile(String aUploadFile)
Initialize the name of the file to be used for testing along with full path.

Constructor Detail

JSS_FileUploadClient

public JSS_FileUploadClient()
Default Constructor, do not use.

Method Detail

clearHandshakeCompleted

public void clearHandshakeCompleted()
Clear handshakeCompleted flag to indicate that the system is now ready for another socket connection.

doIt

public void doIt()
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;

Returns: boolean handshake status

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

Parameters: String CertDbPath

setCipher

public void setCipher(int aCipher)
Initialize the desired cipher to be set on the socket.

Parameters: int Cipher

setClientCertNick

public void setClientCertNick(String aClientCertNick)
Set client certificate

Parameters: String Certificate Nick Name

setEOF

public void setEOF(String fEof)
Set EOF for closinng server socket

Parameters: null for closing 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

Parameters: String ServerName

setPasswordFile

public void setPasswordFile(String aPasswordFile)
Initialize the passwords file name

Parameters: String passwords

setPort

public void setPort(int aPort)
Initialize the port to run the server

Parameters: int port

setTestCertCallback

public void setTestCertCallback(boolean aTestCertCallback)
Enable/disable Test Cert Callback.

Parameters: boolean

setUploadFile

public void setUploadFile(String aUploadFile)
Initialize the name of the file to be used for testing along with full path.

Parameters: String UploadFile