Overview | Package | Class | Tree | Deprecated | Index | Help
| JSS 3.1.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mozilla.jss.ssl
Class SSLServer

    java.lang.Object
      |
      +--org.mozilla.jss.ssl.SSLServer

public class SSLServer
extends java.lang.Object

Parameters supported by this socket test: filename file to be read from https server (default: /index.html) port port to connect to (default: 443) clientauth do client-auth or not (default: no client-auth) The following parameters are used for regression testing, so we can print success or failure of the test. filesize size of file to be read status security status of connection - this has to be an integer

Field Summary
`(package private) java.lang.String[]` | `argNames`
`(package private) java.util.Hashtable` | `args`
`(package private) static int[]` | `cipherSuites`
`(package private) boolean` | `doClientAuth`
`(package private) java.lang.String` | `failed`
`(package private) boolean` | `handshakeEventHappened`
`private static java.lang.String` | `htmlHeader`
`private static java.lang.String` | `htmlTail`
`(package private) java.lang.String` | `okay`
`(package private) java.io.PrintStream` | `results`
`(package private) java.lang.String[]` | `values`
`(package private) java.lang.String` | `versionStr`

Constructor Summary
`SSLServer(java.io.PrintStream ps, java.lang.String verStr)`

Method Summary
`private java.lang.String` | `cmp(java.lang.String s1, int s2)`
`private java.lang.String` | `cmp(java.lang.String s1, java.lang.String s2)`
`private java.lang.String` | `escapeHTML(java.lang.String s)` given an input string, convert less-than, greater-than, and ampersand from raw characters to escaped characters (< becomes `&lt;', etc.)
`private java.lang.String` | `getArgument(java.lang.String key)`
`void` | `handleConnection(SSLSocket s)`
`private boolean` | `isInvalid(java.lang.String s)`
`static void` | `main(java.lang.String[] argv)`
`void` | `run()`

Methods inherited from class java.lang.Object
`, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait`

Field Detail

### handshakeEventHappened

    boolean handshakeEventHappened

### doClientAuth

    boolean doClientAuth

### args

    java.util.Hashtable args

### results

    java.io.PrintStream results

### versionStr

    java.lang.String versionStr

### argNames

    java.lang.String[] argNames

### values

    java.lang.String[] values

### htmlHeader

    private static java.lang.String htmlHeader

### htmlTail

    private static java.lang.String htmlTail

### okay

    java.lang.String okay

### failed

    java.lang.String failed

### cipherSuites

    static final int[] cipherSuites

Constructor Detail

### SSLServer

    public SSLServer(java.io.PrintStream ps,
                     java.lang.String verStr)

Method Detail

### isInvalid

    private boolean isInvalid(java.lang.String s)

### getArgument

    private java.lang.String getArgument(java.lang.String key)

### cmp

    private java.lang.String cmp(java.lang.String s1,
                                 java.lang.String s2)

### cmp

    private java.lang.String cmp(java.lang.String s1,
                                 int s2)

### run

    public void run()

### handleConnection

    public void handleConnection(SSLSocket s)
                          throws java.lang.Exception

### escapeHTML

    private java.lang.String escapeHTML(java.lang.String s)

  given an input string, convert less-than, greater-than, and ampersand from raw characters to escaped characters (< becomes `&lt;', etc.)

### main

    public static void main(java.lang.String[] argv)

Overview | Package | Class | Tree | Deprecated | Index | Help
| JSS 3.1.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD