|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.jss.tests.JSSE_SSLClient
public class JSSE_SSLClient
This program connects to any SSL Server to exercise all ciphers supported by JSSE for a given JDK/JRE version. The result is listing of common ciphers between the server and this JSSE client.
Constructor Summary | |
---|---|
JSSE_SSLClient()
Default constructor. |
Method Summary | |
---|---|
void |
clearHandshakeCompleted()
Clear handshakeCompleted flag to indicate that the system is now ready for another socket connection. |
java.lang.String |
getKeystoreLoc()
Get the location of keystore.pfx |
boolean |
isHandshakeCompleted()
Return true if handshake is completed else return false; |
boolean |
isTunnel()
Return true or false based on tunnel parameters being set. |
static void |
main(java.lang.String[] args)
Main method for local unit testing. |
void |
setCipherSuite(java.lang.String fCipherSuite)
Set the cipher suite name to use. |
void |
setEOF(java.lang.String fEof)
Set EOF for closinng server socket |
void |
setHandshakeCompleted()
Set handshakeCompleted flag to indicate that the socket handshake is coplete. |
void |
setHost(java.lang.String fHost)
Set the host name to connect to. |
void |
setKeystoreLoc(java.lang.String fKeystoreLoc)
Set the location of keystore.pfx |
void |
setPort(int fPort)
Set the port number to connect to. |
void |
setSslRevision(java.lang.String fSslRevision)
Set the protocol type and revision |
void |
setTunnelHost(java.lang.String fTunnelHost)
Set tunnel host name |
void |
setTunnelPort(int fTunnelPort)
Set tunnel port number |
void |
testSslClient(java.lang.String testCipher,
java.lang.String testHost,
int testPort,
java.lang.String keystoreLocation)
Test communication with SSL server using SSLv3 |
void |
testTlsClient(java.lang.String testCipher,
java.lang.String testHost,
int testPort,
java.lang.String keystoreLocation)
Test communication with SSL server using TLS |
java.lang.String |
validateConnection()
validate connection to the initialized host:port using the preset cipherSuiteName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSSE_SSLClient()
Method Detail |
---|
public void setSslRevision(java.lang.String fSslRevision)
String
- sslRevisionpublic void setHost(java.lang.String fHost)
String
- hostnamepublic void setPort(int fPort)
int
- portnumberpublic void setCipherSuite(java.lang.String fCipherSuite)
String
- cipherSuiteNamepublic void setTunnelHost(java.lang.String fTunnelHost)
String
- tunnelHostNamepublic void setTunnelPort(int fTunnelPort)
int
- tunnelPortNumberpublic boolean isHandshakeCompleted()
public void setHandshakeCompleted()
public void clearHandshakeCompleted()
public void setEOF(java.lang.String fEof)
null
- for closing server socketpublic void setKeystoreLoc(java.lang.String fKeystoreLoc)
String
- fKeystoreLocpublic java.lang.String getKeystoreLoc()
public boolean isTunnel()
public java.lang.String validateConnection()
public void testTlsClient(java.lang.String testCipher, java.lang.String testHost, int testPort, java.lang.String keystoreLocation)
public void testSslClient(java.lang.String testCipher, java.lang.String testHost, int testPort, java.lang.String keystoreLocation)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |