Examples of SSLSocketBuilder


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.error("unable to create server socket factory", e);
            throw e;
View Full Code Here

Examples of org.jboss.remoting.security.SSLSocketBuilder

      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

Examples of org.jboss.remoting.security.SSLSocketBuilder

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

Examples of org.jboss.remoting.security.SSLSocketBuilder

      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

Examples of org.jboss.remoting.security.SSLSocketBuilder

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

Examples of org.jboss.remoting.security.SSLSocketBuilder

   {
      SocketFactory socketFactory = null;
      if ((socketFactory = super.createSocketFactory(configuration)) != null)
         return socketFactory;
     
      SSLSocketBuilder server = new SSLSocketBuilder();
      try
      {
         return server.createSSLSocketFactory();
      }
      catch(Exception e)
      {
         log.error("Error creating SSL Socket Factory for server invoker.", e);
         throw new IOException("Error creating SSL Socket Factory.  Root cause: " + e.getMessage());
View Full Code Here

Examples of org.jboss.remoting.security.SSLSocketBuilder

      if (sf != null)
         return sf;

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

Examples of org.jboss.remoting.security.SSLSocketBuilder

   private ServerSocketFactoryMBean createServerSocketFactoryMBean() throws Exception
   {
      ServerSocketFactoryMBean serverSocketFactoryMBean = null;

      SSLSocketBuilder socketBuilder = new SSLSocketBuilder();
      socketBuilder.setUseSSLServerSocketFactory(false);

      socketBuilder.setSecureSocketProtocol("SSL");
      socketBuilder.setKeyStoreAlgorithm("SunX509");

      socketBuilder.setKeyStoreType("JKS");
      String keyStoreFilePath = this.getClass().getResource("../.keystore").getFile();
      socketBuilder.setKeyStoreURL(keyStoreFilePath);
      socketBuilder.setKeyStorePassword("unit-tests-server");
      /*
       * This is optional since if not set, will use
       * the key store password (and are the same in this case)
       */
      //server.setKeyPassword("unit-tests-server");
View Full Code Here

Examples of org.jboss.remoting.security.SSLSocketBuilder

         this.config = config;
      }
     
      public Socket createSocket(String arg0, int arg1) throws IOException, UnknownHostException
      {
         SSLSocketBuilder builder = new SSLSocketBuilder(config);
         if (config.containsKey(SSLSocketBuilder.REMOTING_SOCKET_USE_CLIENT_MODE))
            builder.setSocketUseClientMode(false);
         builder.setUseSSLSocketFactory(false);
         return builder.createSSLSocketFactory().createSocket(arg0, arg1);
      }
View Full Code Here

Examples of org.jboss.remoting.security.SSLSocketBuilder

         return builder.createSSLSocketFactory().createSocket(arg0, arg1);
      }
     
      public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException, UnknownHostException
      {
         SSLSocketBuilder builder = new SSLSocketBuilder(config);
         if (config.containsKey(SSLSocketBuilder.REMOTING_SOCKET_USE_CLIENT_MODE))
            builder.setSocketUseClientMode(false);
         builder.setUseSSLSocketFactory(false);
         return builder.createSSLSocketFactory().createSocket(arg0, arg1, arg2, arg3);
      }
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.