Examples of GIOPConnection


Examples of org.jacorb.orb.giop.GIOPConnection

     */
    private X509Certificate getClientCert(ServerRequestInfo ri)
    {
        ServerRequest request = ((ServerRequestInfoImpl) ri).request;

        GIOPConnection connection = request.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

          }

        if (sasContext == null)
            return;

        GIOPConnection connection =
            ((ServerRequestInfoImpl) ri).request.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 (logger.isDebugEnabled())
            logger.debug("receive_request for "+ri.operation());

        if (sasContext == null)
            return;
        GIOPConnection connection =
            ((ServerRequestInfoImpl) ri).request.getConnection();

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

Examples of org.jacorb.orb.giop.GIOPConnection

     * allowed, it shall ignore the passed instance and
     * return false.
     */
    public boolean add_input (org.omg.ETF.Connection conn)
    {
        GIOPConnection giopConnection =
            giop_connection_manager.createServerGIOPConnection
            (
                conn.get_server_profile(),
                conn,
                request_listener,
View Full Code Here

Examples of org.jacorb.orb.giop.GIOPConnection

    public void receive_request_service_contexts( ServerRequestInfo ri )
        throws ForwardRequest
    {
        ServerRequest request = ((ServerRequestInfoImpl) ri).request;
        GIOPConnection connection = request.getConnection();

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

        if( !connection.isSSL() )
        {
            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

     * allowed, it shall ignore the passed instance and
     * return false.
     */
    public boolean add_input (org.omg.ETF.Connection conn)
    {
        GIOPConnection giopConnection =
            giop_connection_manager.createServerGIOPConnection
            (
                conn.get_server_profile(),
                conn,
                request_listener,
View Full Code Here

Examples of org.jacorb.orb.giop.GIOPConnection

          }

        if (sasContext == null)
            return;

        GIOPConnection connection =
            ((ServerRequestInfoImpl) ri).request.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 (logger.isDebugEnabled())
            logger.debug("receive_request for "+ri.operation());

        if (sasContext == null)
            return;
        GIOPConnection connection =
            ((ServerRequestInfoImpl) ri).request.getConnection();

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

Examples of org.jacorb.orb.giop.GIOPConnection

     */
    private X509Certificate getClientCert(ServerRequestInfo ri)
    {
        ServerRequest request = ((ServerRequestInfoImpl) ri).request;

        GIOPConnection connection = request.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
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.