Class DGCClientSocketFactory

  • All Implemented Interfaces:
    RMIClientSocketFactory, RMIServerSocketFactory

    public class DGCClientSocketFactory
    extends RMISocketFactory
    The DGCClientSocket factory is used when the --ssrf-response option was specified on the command line. In this case, the user may supplies an SSRF response that contains a remote object reference. These references create outbound DGC connections upon deserialization. To prevent these outbound connections, we use a dummy socket factory. This factory returns sockets that discard all incoming data and return an malformed DGC response when being read. Since no outgoing data is expected when using --ssrf-response, this socket factory is set to the default RMI socket factory if the --ssrf-response option is used.
    Author:
    Tobias Neitzel (@qtc_de)