Examples of IIOPSSLUtil


Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

                if (clientSslInfo == null) {
                    clientSslInfo = getDefaultSslInfo();
                }
            } else {
                if ((processType != null) && (processType == ProcessType.ACC)) {
                    IIOPSSLUtil sslUtil = Globals.getDefaultHabitat().getComponent(IIOPSSLUtil.class);
                    AppClientSSL clientSsl = (AppClientSSL)sslUtil.getAppClientSSL();
                    if (clientSsl != null) {
                        clientSslInfo = init(clientSsl.getCertNickname(),
                                clientSsl.getSsl2Enabled(), clientSsl.getSsl2Ciphers(),
                                clientSsl.getSsl3Enabled(), clientSsl.getSsl3TlsCiphers(),
                                clientSsl.getTlsEnabled());
View Full Code Here

Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

                    true, false, false);
        }

        SSLContext ctx = SSLContext.getInstance(protocol);
        if (Globals.getDefaultHabitat() != null) {
            IIOPSSLUtil sslUtil = Globals.getDefaultHabitat().getComponent(IIOPSSLUtil.class);
            KeyManager[] mgrs = sslUtil.getKeyManagers(alias);
            ctx.init(mgrs, sslUtil.getTrustManagers(), sslUtil.getInitializedSecureRandom());
        } else {
            //do nothing
            //ctx.init(mgrs, sslUtil.getTrustManagers(), sslUtil.getInitializedSecureRandom());
        }
View Full Code Here

Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

                       || sinfo.type().equals("SSL_MUTUALAUTH")){
                       socketInfos.add(sinfo);
                    }
                }               
            }
            IIOPSSLUtil sslUtil = null;
            if (Globals.getDefaultHabitat() != null) {
                sslUtil =
                    Globals.getDefaultHabitat().getComponent(IIOPSSLUtil.class);
                return sslUtil.createSSLTaggedComponent(iorInfo, socketInfos);
            } else {
                return null;
            }
          
  } finally {
View Full Code Here

Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

            IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate)ior.
                                 getProfile().getTaggedProfileTemplate();
            IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ;
            String host = primary.getHost().toLowerCase();

            IIOPSSLUtil sslUtil = null;
            if (Globals.getDefaultHabitat() != null) {
                sslUtil = Globals.getDefaultHabitat().getComponent(
                    IIOPSSLUtil.class);
                socketInfo = (List<SocketInfo>)sslUtil.getSSLPortsAsSocketInfo(
                    ior);
            }

            if (socketInfo == null) {
                if (_logger.isLoggable(Level.FINE)) {
View Full Code Here

Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

                       || sinfo.type().equals("SSL_MUTUALAUTH")){
                       socketInfos.add(sinfo);
                    }
                }               
            }
            IIOPSSLUtil sslUtil = null;
            if (Globals.getDefaultHabitat() != null) {
                sslUtil =
                    Globals.getDefaultHabitat().getService(IIOPSSLUtil.class);
                return sslUtil.createSSLTaggedComponent(iorInfo, socketInfos);
            } else {
                return null;
            }
          
  } finally {
View Full Code Here

Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

            IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate)ior.
                                 getProfile().getTaggedProfileTemplate();
            IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ;
            // String host = primary.getHost().toLowerCase(Locale.ENGLISH);

            IIOPSSLUtil sslUtil = null;
            if (Globals.getDefaultHabitat() != null) {
                sslUtil = Globals.getDefaultHabitat().getService(
                    IIOPSSLUtil.class);
                socketInfo = (List<SocketInfo>)sslUtil.getSSLPortsAsSocketInfo(
                    ior);
            }

            if (socketInfo == null) {
                if (_logger.isLoggable(Level.FINE)) {
View Full Code Here

Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

                       || sinfo.type().equals("SSL_MUTUALAUTH")){
                       socketInfos.add(sinfo);
                    }
                }               
            }
            IIOPSSLUtil sslUtil = null;
            if (Globals.getDefaultHabitat() != null) {
                sslUtil =
                    Globals.getDefaultHabitat().getService(IIOPSSLUtil.class);
                return sslUtil.createSSLTaggedComponent(iorInfo, socketInfos);
            } else {
                return null;
            }
          
  } finally {
View Full Code Here

Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

            IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate)ior.
                                 getProfile().getTaggedProfileTemplate();
            // IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ;
            // String host = primary.getHost().toLowerCase(Locale.ENGLISH);

            IIOPSSLUtil sslUtil = null;
            if (Globals.getDefaultHabitat() != null) {
                sslUtil = Globals.getDefaultHabitat().getService(
                    IIOPSSLUtil.class);
                socketInfo = (List<SocketInfo>)sslUtil.getSSLPortsAsSocketInfo(
                    ior);
            }

            if (socketInfo == null) {
                if (_logger.isLoggable(Level.FINE)) {
View Full Code Here

Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

                       || sinfo.type().equals("SSL_MUTUALAUTH")){
                       socketInfos.add(sinfo);
                    }
                }               
            }
            IIOPSSLUtil sslUtil = null;
            if (Globals.getDefaultHabitat() != null) {
                sslUtil =
                    Globals.getDefaultHabitat().getService(IIOPSSLUtil.class);
                return sslUtil.createSSLTaggedComponent(iorInfo, socketInfos);
            } else {
                return null;
            }
          
  } finally {
View Full Code Here

Examples of org.glassfish.enterprise.iiop.api.IIOPSSLUtil

            IIOPProfileTemplate iiopProfileTemplate = (IIOPProfileTemplate)ior.
                                 getProfile().getTaggedProfileTemplate();
            // IIOPAddress primary = iiopProfileTemplate.getPrimaryAddress() ;
            // String host = primary.getHost().toLowerCase(Locale.ENGLISH);

            IIOPSSLUtil sslUtil = null;
            if (Globals.getDefaultHabitat() != null) {
                sslUtil = Globals.getDefaultHabitat().getService(
                    IIOPSSLUtil.class);
                socketInfo = (List<SocketInfo>)sslUtil.getSSLPortsAsSocketInfo(
                    ior);
            }

            if (socketInfo == null) {
                if (_logger.isLoggable(Level.FINE)) {
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.