Examples of GIOPConnection


Examples of org.jacorb.orb.giop.GIOPConnection

        /**
         * If this is a loopback request there may be no request. Handling
         * of local server objects with interceptors is now done locally
         * rather than via the remote mechanism.
         */
        GIOPConnection connection = ((ServerRequestInfoImpl) ri).getConnection();

        // lookup for context
        if (connection == null)
        {
            if (logger.isErrorEnabled())
                logger.error("target has no connection!");
            return;
        }

        if( !connection.isSSL() )
        {
            return;
        }

        if (! (connection.getTransport() instanceof ServerIIOPConnection))
        {
            return;
        }

        ServerIIOPConnection transport =
            (ServerIIOPConnection)connection.getTransport();

        SSLSocket sslSocket = (SSLSocket)transport.getSocket();

        javax.net.ssl.SSLSession session = sslSocket.getSession();

View Full Code Here

Examples of org.jacorb.orb.giop.GIOPConnection

     * This method retrievs the received client certificate
     * from the Credentials.
     */
    private X509Certificate getClientCert(ServerRequestInfo ri)
    {
        GIOPConnection connection = ((ServerRequestInfoImpl) ri).getConnection();

        // lookup for context
        if (connection == null)
        {
            if (logger.isWarnEnabled())
                logger.warn("target has no connection!");
            return null;
        }

        if( !connection.isSSL() )
        {
            return null;
        }

        ServerIIOPConnection transport =
            (ServerIIOPConnection) connection.getTransport();

        SSLSocket sslSocket = (SSLSocket) transport.getSocket();
        try
        {
            return (X509Certificate)sslSocket.getSession().getPeerCertificates()[0];
View Full Code Here

Examples of org.jacorb.orb.giop.GIOPConnection

                        new ServerIIOPConnection (socket,
                                                  false,
                                                  new NullTCPConnectionListener() ); // TODO // no SSL
                    transport.configure(configuration);

                    GIOPConnection connection =
                    new ServerGIOPConnection( transport.get_server_profile(),
                                              transport,
                                              request_listener,
                                              reply_listener,
                                              null,
                                              null);
                    connection.configure(configuration);
                    receptor_pool.connectionCreated( connection );
                }
                catch (Exception _e)
                {
                    // when finishing, we do a close() on
View Full Code Here

Examples of org.jacorb.orb.giop.GIOPConnection

        if (sasContext == null || ri.isLocalInterceptor())
        {
            return;
        }

        GIOPConnection connection = ri.getConnection();

        // verify SSL requirements
        if (useSsl && !connection.isSSL())
        {
            if (logger.isErrorEnabled())
                logger.error("SSL required for operation " + ri.operation());
            throw new org.omg.CORBA.NO_PERMISSION("SSL Required!",
                                                  MinorCodes.SAS_TSS_FAILURE,
View Full Code Here

Examples of org.jacorb.orb.giop.GIOPConnection

        if (sasContext == null || ri.isLocalInterceptor())
        {
            return;
        }

        GIOPConnection connection = ri.getConnection();

        // check policy
        SASPolicyValues sasValues = null;
        try
        {
View Full Code Here

Examples of org.jacorb.orb.giop.GIOPConnection

        String ipAddr = null;

        // This is proprietary non-public API and specific to JacORB only.
        if (ri instanceof ServerRequestInfoImpl)
        {
            GIOPConnection connection = ((ServerRequestInfoImpl)ri).getConnection();
            // Retrieve the transport from the ServerRequest/GIOPConnection
            ServerIIOPConnection transport = (ServerIIOPConnection)connection.getTransport();
            // Get the socket from the IIOP layer
            Socket socket = transport.getSocket();

            ipAddr = socket.getInetAddress().getHostAddress();
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.