Modifier and Type | Class and Description |
---|---|
class |
JSS_SelfServClient.HandshakeListener
SSL Handshake Listeren implementation.
|
Constants.cipher
Modifier and Type | Field and Description |
---|---|
static int |
TEST_CIPHERS |
debug_level, jssCipherSuites, sslciphersarray_jdk142, sslciphersarray_jdk150
Constructor and Description |
---|
JSS_SelfServClient()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearHandshakeCompleted()
Clear handshakeCompleted flag to indicate
that the system is now ready for another
socket connection.
|
void |
closeAllSockets()
closes the SSLSocket
|
void |
configureCipherSuites(java.lang.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(java.lang.String[] args)
Main method.
|
void |
outputCipherResults() |
void |
sendServerShutdownMsg()
sendServerShutdownMsg
|
void |
setBypassPKCS11(boolean f) |
void |
setCertDbPath(java.lang.String aCertDbPath)
Initialize the cert db path name
|
void |
setCipher(int aCipher)
Initialize the desired ciphersuite to be set
on the socket.
|
void |
setClientCertNick(java.lang.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(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.
|
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.
|
public static final int TEST_CIPHERS
public void setTestCiphers(boolean t)
public boolean getTestCiphers()
public void setVerbose(boolean v)
public void setBypassPKCS11(boolean f)
public boolean getBypassPKCS11()
public boolean testJSSCiphersMatchNSS()
public void configureDefaultSSLOptions()
public void configureCipherSuites(java.lang.String server)
public void testCiphersuites(int numOfThreads)
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 void setCertDbPath(java.lang.String aCertDbPath)
aCertDbPath
- 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 int getSockTotal()
public boolean isServerAlive()
public void sendServerShutdownMsg()
public void closeAllSockets()
public void outputCipherResults()
public void createSSLConnections(int numToCreate) throws java.lang.Exception
java.lang.Exception
public void setFailure()
public boolean getSuccess()
public static void main(java.lang.String[] args)