public class JSS_SSLClient
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
JSS_SSLClient.HandshakeListener
SSL Handshake Listeren implementation.
|
| Constructor and Description |
|---|
JSS_SSLClient()
Default Constructor, do not use.
|
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.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(java.lang.String[] args)
Main method.
|
void |
setBypass(boolean bypass)
Enable/disable Test Cert Callback.
|
static void |
setCertDbPath(java.lang.String aCertDbPath)
Initialize the cert db path name
|
void |
setCipher(int aCipher)
Initialize the desired cipher to be set
on the socket.
|
void |
setClientCertNick(java.lang.String aClientCertNick)
Set client certificate
|
void |
setEOF(java.lang.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(java.lang.String aHostName)
Initialize the hostname to run the server
|
void |
setPasswordFile(java.lang.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.
|
public void setCipher(int aCipher)
aCipher - public void setHostName(java.lang.String aHostName)
aHostName - public void setPort(int aPort)
aPort - public void setPasswordFile(java.lang.String aPasswordFile)
aPasswordFile - public static void setCertDbPath(java.lang.String aCertDbPath)
aCertDbPath - public static java.lang.String getCertDbPath()
public void setBypass(boolean bypass)
bypass - public void setTestCertCallback(boolean aTestCertCallback)
aTestCertCallback - public void setClientCertNick(java.lang.String aClientCertNick)
aClientCertNick - Certificate Nick Namepublic boolean isHandshakeCompleted()
public void setHandshakeCompleted()
public void clearHandshakeCompleted()
public void setEOF(java.lang.String fEof)
fEof - null for closing server socketpublic void doIt()
throws java.lang.Exception
java.lang.Exceptionpublic void setFailure()
public boolean getSuccess()
public static void main(java.lang.String[] args)