Package org.jboss.remoting.security

Examples of org.jboss.remoting.security.SSLSocketBuilder


       * will use the default within tomcat (and not override with own default).
       */

      if ("https".equals(locator.getProtocol()))
      {
         SSLSocketBuilder builder = new SSLSocketBuilder(configuration);
         builder.setUseSSLServerSocketFactory(false);
         try
         {
            return builder.createSSLServerSocketFactory();
         }
         catch (IOException e)
         {
            log.debug("unable to create server socket factory", e);
            throw e;
View Full Code Here


     
      SocketFactory wrapper = sf;

      try
      {
         SSLSocketBuilder server = new SSLSocketBuilder(configuration);
         sf = server.createSSLSocketFactory();
      }
      catch (Exception e)
      {
         log.error("Error creating SSL Socket Factory for client invoker.", e);
      }
View Full Code Here

     
      SocketFactory wrapper = sf;

      try
      {
         SSLSocketBuilder server = new SSLSocketBuilder(configuration);
         sf = server.createSSLSocketFactory();
      }
      catch (Exception e)
      {
         log.error("Error creating SSL Socket Factory for client invoker.", e);
      }
View Full Code Here

      if (factory == null && needsCustomSSLConfiguration(configuration))
      {
         try
         {
            SSLSocketBuilder socketBuilder = new SSLSocketBuilder(configuration);
            socketBuilder.setUseSSLSocketFactory( false );
            factory = socketBuilder.createSSLSocketFactory();
            socketFactoryCreatedFromSSLParameters = true;
         }
         catch (IOException e)
         {
            throw new RuntimeException("Unable to create customized SSL socket factory", e);
View Full Code Here

   }


   protected ServerSocketFactory getDefaultServerSocketFactory() throws IOException
   {
      SSLSocketBuilder builder = new SSLSocketBuilder(configuration);
      builder.setUseSSLServerSocketFactory(false);
      return builder.createSSLServerSocketFactory();
   }
View Full Code Here

            {
               sf = (SocketFactory) tempConfig.get(Remoting.CUSTOM_SOCKET_FACTORY);
            }
            else
            {
               SSLSocketBuilder socketBuilder = new SSLSocketBuilder(tempConfig);
               socketBuilder.setUseSSLSocketFactory( false );
               sf = socketBuilder.createSSLSocketFactory();
               sf = AbstractInvoker.wrapSocketFactory(sf, tempConfig);
            }

            socketFactories.put(this, sf);
View Full Code Here

      SocketFactory wrapper = sf;

      try
      {
         SSLSocketBuilder server = new SSLSocketBuilder(configuration);
         sf = server.createSSLSocketFactory();
      }
      catch (Exception e)
      {
         log.error("Error creating SSL Socket Factory for client invoker.", e);
      }
View Full Code Here

      config.put(SSLSocketBuilder.REMOTING_KEY_STORE_TYPE, "JKS");
      String keyStoreFilePath = getKeystoreFilePath();
      config.put(SSLSocketBuilder.REMOTING_KEY_STORE_FILE_PATH, keyStoreFilePath);
      config.put(SSLSocketBuilder.REMOTING_KEY_STORE_PASSWORD, "unit-tests-server");
      config.put(SSLSocketBuilder.REMOTING_SSL_PROTOCOL, "SSL");
      SSLSocketBuilder builder = new SSLSocketBuilder(config);
      builder.setUseSSLServerSocketFactory(false);
      SSLServerSocketFactoryService service = new SSLServerSocketFactoryService();
      service.setSSLSocketBuilder(builder);
      service.start();
      return service;
   }
View Full Code Here

      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_TYPE, "JKS");
      String trustStoreFilePath = getTruststoreFilePath();
      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_FILE_PATH, trustStoreFilePath);
      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_PASSWORD, "unit-tests-client");
      config.put(SSLSocketBuilder.REMOTING_SSL_PROTOCOL, "SSL");
      SSLSocketBuilder builder = new SSLSocketBuilder(config);
      builder.setUseSSLSocketFactory(false);
      SSLSocketFactoryService service = new SSLSocketFactoryService();
      service.setSSLSocketBuilder(builder);
      service.start();
      return service;
   }
View Full Code Here

      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_TYPE, "JKS");
      String trustStoreFilePath = getTruststoreFilePath();
      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_FILE_PATH, trustStoreFilePath);
      config.put(SSLSocketBuilder.REMOTING_TRUST_STORE_PASSWORD, "unit-tests-client");
      config.put(SSLSocketBuilder.REMOTING_SSL_PROTOCOL, "SSL");
      SSLSocketBuilder builder = new SSLSocketBuilder(config);
      builder.setUseSSLServerSocketFactory(false);
      SSLServerSocketFactoryService service = new SSLServerSocketFactoryService();
      service.setSSLSocketBuilder(builder);
      service.start();
      return service;
   }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.security.SSLSocketBuilder

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.