de.bb.security
Class Ssl3Server
java.lang.Object
|
+--de.bb.security.SslBase
|
+--de.bb.security.Ssl3
|
+--de.bb.security.Ssl3Server
- public final class Ssl3Server
- extends de.bb.security.Ssl3
Implements the server side handshake for SSL3. Supports an SSL2 client hello
Contains all server specific function which are needed to establish an SSL3 connection.
|
Constructor Summary |
Ssl3Server()
Creates a new Ssl3Server object, which uses the given InputStream for reading
and the given OutputStream for writing. |
|
Method Summary |
java.util.Vector |
getCertificates()
return the vector of received certificates |
int |
getCipherType()
Query the used ciphertype |
java.io.InputStream |
getInputStream()
Returns an input stream for this Ssl connection. |
java.io.OutputStream |
getOutputStream()
Returns an input stream for this Ssl connection. |
void |
listen(java.io.InputStream _is,
java.io.OutputStream _os,
byte[] cert,
byte[] kn,
byte[] kf)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ssl3Server
public Ssl3Server()
throws java.io.IOException
- Creates a new Ssl3Server object, which uses the given InputStream for reading
and the given OutputStream for writing.
- Parameters:
_is - the InputStream, which is used for reading#_os - the OutputStream, which is used for writingcert - is the used certificatekn - is the private key modulokf - is the private key exponent- Throws:
java.io.IOException - throws an IOException if any non recoverable error occurs.
listen
public void listen(java.io.InputStream _is,
java.io.OutputStream _os,
byte[] cert,
byte[] kn,
byte[] kf)
throws java.io.IOException
getCipherType
public final int getCipherType()
- Query the used ciphertype
- Returns:
- the used ciphertype
3 = SSL_RSA_WITH_RC4_40_MD5
4 = SSL_RSA_WITH_RC4_128_MD5
5 = SSL_RSA_WITH_RC4_128_SHA
getInputStream
public final java.io.InputStream getInputStream()
- Returns an input stream for this Ssl connection.
- Returns:
- a stream for reading from this Ssl connection.
getOutputStream
public final java.io.OutputStream getOutputStream()
- Returns an input stream for this Ssl connection.
- Returns:
- a stream for reading from this Ssl connection.
getCertificates
public final java.util.Vector getCertificates()
- return the vector of received certificates
- Returns:
- a vector with all received certificates