Package org.jboss.remoting.security

Examples of org.jboss.remoting.security.CustomSSLServerSocketFactory


      try
      {
         if (serverSocketFactory  instanceof CustomSSLServerSocketFactory)
         {
            CustomSSLServerSocketFactory customServerSocketFactory = (CustomSSLServerSocketFactory) serverSocketFactory;
            SSLSocketBuilderMBean builder = customServerSocketFactory.getSSLSocketBuilder();
            boolean shouldUseDefault = builder.getUseSSLServerSocketFactory();
            builder.setUseSSLSocketFactory(shouldUseDefault);
            boolean useClientMode = builder.isServerSocketUseClientMode();
            builder.setSocketUseClientMode(useClientMode);
            return builder.createSSLSocketFactory();
View Full Code Here


         // Verify ServerSocketFactory was configured according to SSL parameters
         // in config map.
         ServerInvoker serverInvoker = connector.getServerInvoker();
         ServerSocketFactory ssf = serverInvoker.getServerSocketFactory();
         assertTrue(ssf instanceof CustomSSLServerSocketFactory);
         CustomSSLServerSocketFactory csssf = (CustomSSLServerSocketFactory) ssf;
         SSLSocketBuilderMBean builder = csssf.getSSLSocketBuilder();
         assertFalse(builder.isServerSocketUseClientMode());
         assertEquals("JKS", builder.getKeyStoreType());
         File file1 = new File(keyStoreFilePath);
         File file2 = new File(builder.getKeyStore().getFile());
         assertEquals(file1, file2);
View Full Code Here

      try
      {
         if (serverSocketFactory  instanceof CustomSSLServerSocketFactory)
         {
            CustomSSLServerSocketFactory customServerSocketFactory = (CustomSSLServerSocketFactory) serverSocketFactory;
            SSLSocketBuilderMBean builder = customServerSocketFactory.getSSLSocketBuilder();
            boolean shouldUseDefault = builder.getUseSSLServerSocketFactory();
            builder.setUseSSLSocketFactory(shouldUseDefault);
            boolean useClientMode = builder.isServerSocketUseClientMode();
            builder.setSocketUseClientMode(useClientMode);
            return builder.createSSLSocketFactory();
View Full Code Here

/*  83 */     ServerSocketFactory serverSocketFactory = getServerSocketFactory();
/*     */     try
/*     */     {
/*  87 */       if ((serverSocketFactory instanceof CustomSSLServerSocketFactory))
/*     */       {
/*  89 */         CustomSSLServerSocketFactory customServerSocketFactory = (CustomSSLServerSocketFactory)serverSocketFactory;
/*  90 */         SSLSocketBuilderMBean builder = customServerSocketFactory.getSSLSocketBuilder();
/*  91 */         boolean shouldUseDefault = builder.getUseSSLServerSocketFactory();
/*  92 */         builder.setUseSSLSocketFactory(shouldUseDefault);
/*  93 */         boolean useClientMode = builder.isServerSocketUseClientMode();
/*  94 */         builder.setSocketUseClientMode(useClientMode);
/*  95 */         return builder.createSSLSocketFactory();
View Full Code Here

         // Verify ServerSocketFactory was configured according to SSL parameters
         // in config map.
         ServerInvoker serverInvoker = connector.getServerInvoker();
         ServerSocketFactory ssf = serverInvoker.getServerSocketFactory();
         assertTrue(ssf instanceof CustomSSLServerSocketFactory);
         CustomSSLServerSocketFactory csssf = (CustomSSLServerSocketFactory) ssf;
         SSLSocketBuilderMBean builder = csssf.getSSLSocketBuilder();
         assertFalse(builder.isServerSocketUseClientMode());
         assertEquals("JKS", builder.getKeyStoreType());
         File file1 = new File(keyStoreFilePath);
         File file2 = new File(builder.getKeyStore().getFile());
         assertEquals(file1, file2);
View Full Code Here

TOP

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

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.