|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.mozilla.jss.tests
Class JSSE_SSLClient
java.lang.Object org.mozilla.jss.tests.JSSE_SSLClient
public class JSSE_SSLClient
- extends java.lang.Object
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 |
---|
JSSE_SSLClient
public JSSE_SSLClient()
- Default constructor.
Method Detail |
---|
setSslRevision
public void setSslRevision(java.lang.String fSslRevision)
- Set the protocol type and revision
- Parameters:
String
- sslRevision
setHost
public void setHost(java.lang.String fHost)
- Set the host name to connect to.
- Parameters:
String
- hostname
setPort
public void setPort(int fPort)
- Set the port number to connect to.
- Parameters:
int
- portnumber
setCipherSuite
public void setCipherSuite(java.lang.String fCipherSuite)
- Set the cipher suite name to use.
- Parameters:
String
- cipherSuiteName
setTunnelHost
public void setTunnelHost(java.lang.String fTunnelHost)
- Set tunnel host name
- Parameters:
String
- tunnelHostName
setTunnelPort
public void setTunnelPort(int fTunnelPort)
- Set tunnel port number
- Parameters:
int
- tunnelPortNumber
isHandshakeCompleted
public boolean isHandshakeCompleted()
- Return true if handshake is completed
else return false;
- Returns:
- boolean handshake status
setHandshakeCompleted
public void setHandshakeCompleted()
- Set handshakeCompleted flag to indicate
that the socket handshake is coplete.
clearHandshakeCompleted
public void clearHandshakeCompleted()
- Clear handshakeCompleted flag to indicate
that the system is now ready for another
socket connection.
setEOF
public void setEOF(java.lang.String fEof)
- Set EOF for closinng server socket
- Parameters:
null
- for closing server socket
setKeystoreLoc
public void setKeystoreLoc(java.lang.String fKeystoreLoc)
- Set the location of keystore.pfx
- Parameters:
String
- fKeystoreLoc
getKeystoreLoc
public java.lang.String getKeystoreLoc()
- Get the location of keystore.pfx
- Returns:
- String fKeystoreLoc
isTunnel
public boolean isTunnel()
- Return true or false based on
tunnel parameters being set.
- Returns:
- boolean true/false
validateConnection
public java.lang.String validateConnection()
- validate connection to the initialized host:port
using the preset cipherSuiteName.
testTlsClient
public void testTlsClient(java.lang.String testCipher, java.lang.String testHost, int testPort, java.lang.String keystoreLocation)
- Test communication with SSL server using TLS
testSslClient
public void testSslClient(java.lang.String testCipher, java.lang.String testHost, int testPort, java.lang.String keystoreLocation)
- Test communication with SSL server using SSLv3
main
public static void main(java.lang.String[] args)
- Main method for local unit testing.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |