Package sun.rmi.transport

Examples of sun.rmi.transport.LiveRef


      throw new IllegalStateException("already used for export");
  } else if (impl == null) {
      throw new NullPointerException();
  }
  ref = new WeakReference(impl);
  UnicastServerRef uref = getServerRef(new LiveRef(new ObjID(id), port));
  try {
      Object[] args = new Object[] { impl, null, Boolean.TRUE };
      return (Remote) exportMethod.invoke(uref, args);
  } catch (InvocationTargetException e) {
      Throwable t = e.getTargetException();
View Full Code Here


                      " remote reference in stub!");

        // Check RMIClientSocketFactory in stub is from the expected class
        // "javax.rmi.ssl.SslRMIClientSocketFactory".
        //
        LiveRef liveRef = ((UnicastRef2)ref).getLiveRef();
        RMIClientSocketFactory csf = liveRef.getClientSocketFactory();
        if (csf == null || csf.getClass() != SslRMIClientSocketFactory.class)
            throw new SecurityException(
                  "Expecting a " + SslRMIClientSocketFactory.class.getName() +
                  " RMI client socket factory in stub!");
    }
View Full Code Here

TOP

Related Classes of sun.rmi.transport.LiveRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.