Package com.sun.enterprise.iiop.security

Examples of com.sun.enterprise.iiop.security.SecurityMechanismSelector


  List<SocketInfo> socketInfo = null;
        try {
      if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE, baseMsg + ".extract->:");
      }
            SecurityMechanismSelector selector = new SecurityMechanismSelector();
            IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate)ior.
                                 getProfile().getTaggedProfileTemplate();
            IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ;
            String host = primary.getHost().toLowerCase();

            ConnectionContext ctx = new ConnectionContext();
            socketInfo = selector.getSSLPorts(ior, ctx);
            selector.setClientConnectionContext(ctx);
            if (socketInfo == null) {
                if (_logger.isLoggable(Level.FINE)) {
        _logger.log(Level.FINE, baseMsg
        + ".extract: did not find SSL SocketInfo");
    }
View Full Code Here


      tm.checkTransactionExport(StubAdapter.isLocal(target));

  // Get connection information and store it in ConnectionContext
  Connection c = ((RequestInfoExt)cri).connection();
  if(c != null) {
      SecurityMechanismSelector sms = new SecurityMechanismSelector();
      ConnectionContext cc = sms.getClientConnectionContext();
      if(_logger.isLoggable(Level.FINE)){
     _logger.log(Level.FINE,"SENDING request on connection: " + c);
      }
      if(cc != null) {
          cc.setSocket(c.getSocket());
View Full Code Here

        try {
      if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE, baseMsg + ".getSocketInfo->:");
      }
            List result = new ArrayList();
            SecurityMechanismSelector selector = new SecurityMechanismSelector();
            IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate)ior.
                                 getProfile().getTaggedProfileTemplate();
            IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ;
            String host = primary.getHost().toLowerCase();

            String type = null;
            int port = 0;
            ConnectionContext ctx = new ConnectionContext();
            SocketInfo socketInfo = selector.getSSLPort(ior, ctx);
            selector.setClientConnectionContext(ctx);
            if (socketInfo == null) {
                type = SocketInfo.IIOP_CLEAR_TEXT;
                port = primary.getPort();
    if (_logger.isLoggable(Level.FINE)) {
        _logger.log(Level.FINE, baseMsg
View Full Code Here

    public void receive_request_service_contexts(ServerRequestInfo sri)
    {
        Socket s = null;
        Connection c = ((RequestInfoExt)sri).connection();
        SecurityMechanismSelector sms = new SecurityMechanismSelector();
        ServerConnectionContext scc = null;
        if (c != null) {
            s = c.getSocket();
            if(_logger.isLoggable(Level.FINE)) {
                _logger.log(Level.FINE,"RECEIVED request on connection: " + c);
                _logger.log(Level.FINE,"Socket =" + s);
            }
            scc = new ServerConnectionContext(s);
        } else {
            scc = new ServerConnectionContext();
        }
        sms.setServerConnectionContext(scc);
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.iiop.security.SecurityMechanismSelector

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.