org.tentackle.db.rmi
Class CompressedSslServerSocketFactory

java.lang.Object
  extended by javax.rmi.ssl.SslRMIServerSocketFactory
      extended by org.tentackle.db.rmi.CompressedSslServerSocketFactory
All Implemented Interfaces:
RMIServerSocketFactory

public class CompressedSslServerSocketFactory
extends SslRMIServerSocketFactory

Zip-compressed server socket factory.

Author:
harald

Constructor Summary
CompressedSslServerSocketFactory()
          Creates a CompressedServerSocketFactory with default cipher suites, protocols and without client authentication.
CompressedSslServerSocketFactory(String[] enabledCipherSuites, String[] enabledProtocols, boolean needClientAuth)
          Creates a new instance of CompressedServerSocketFactory.
 
Method Summary
 ServerSocket createServerSocket(int port)
          Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters.
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for this SslRMIServerSocketFactory.
 
Methods inherited from class javax.rmi.ssl.SslRMIServerSocketFactory
getEnabledCipherSuites, getEnabledProtocols, getNeedClientAuth
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressedSslServerSocketFactory

public CompressedSslServerSocketFactory(String[] enabledCipherSuites,
                                        String[] enabledProtocols,
                                        boolean needClientAuth)
Creates a new instance of CompressedServerSocketFactory.

Parameters:
enabledCipherSuites - the enabled cipher suites, null for default
enabledProtocols - the enabled protocols, null for default
needClientAuth - true if server request SSL-client-authentication

CompressedSslServerSocketFactory

public CompressedSslServerSocketFactory()
Creates a CompressedServerSocketFactory with default cipher suites, protocols and without client authentication.

Method Detail

createServerSocket

public ServerSocket createServerSocket(int port)
                                throws IOException
Description copied from class: javax.rmi.ssl.SslRMIServerSocketFactory

Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters.

Specified by:
createServerSocket in interface RMIServerSocketFactory
Overrides:
createServerSocket in class SslRMIServerSocketFactory
Parameters:
port - the port number
Returns:
the server socket on the specified port
Throws:
IOException - if an I/O error occurs during server socket creation

hashCode

public int hashCode()
Description copied from class: javax.rmi.ssl.SslRMIServerSocketFactory

Returns a hash code value for this SslRMIServerSocketFactory.

Overrides:
hashCode in class SslRMIServerSocketFactory
Returns:
a hash code value for this SslRMIServerSocketFactory.
See Also:
Object.equals(java.lang.Object), Hashtable

equals

public boolean equals(Object obj)
Description copied from class: javax.rmi.ssl.SslRMIServerSocketFactory

Indicates whether some other object is "equal to" this one.

Two SslRMIServerSocketFactory objects are equal if they have been constructed with the same SSL socket configuration parameters.

A subclass should override this method (as well as SslRMIServerSocketFactory.hashCode()) if it adds instance state that affects equality.

Overrides:
equals in class SslRMIServerSocketFactory
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.hashCode(), Hashtable


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de