/** * Sets the enabled cipher suites on the underlying network socket. */ public void setEnabledCiphers(String[] enabledCiphers) { final String methodName = "setEnabledCiphers"; this.enabledCiphers = enabledCiphers; if ((socket != null) && (enabledCiphers != null)) { if (log.isLoggable(Logger.FINE)) { String ciphers = ""; for (int i = 0; i < enabledCiphers.length; i++) { if (i > 0) { ciphers += ","; } ciphers += enabledCiphers[i]; } //@TRACE 260=setEnabledCiphers ciphers={0} log.fine(className, methodName, "260", new Object[]{ciphers}); } ((SSLSocket) socket).setEnabledCipherSuites(enabledCiphers); } }
/** * Sets the enabled cipher suites on the underlying network socket. */ public void setEnabledCiphers(String[] enabledCiphers) { final String methodName = "setEnabledCiphers"; this.enabledCiphers = enabledCiphers; if ((socket != null) && (enabledCiphers != null)) { if (log.isLoggable(Logger.FINE)) { String ciphers = ""; for (int i=0;i<enabledCiphers.length;i++) { if (i>0) { ciphers+=","; } ciphers+=enabledCiphers[i]; } //@TRACE 260=setEnabledCiphers ciphers={0} log.fine(CLASS_NAME,methodName,"260",new Object[]{ciphers}); } ((SSLSocket) socket).setEnabledCipherSuites(enabledCiphers); } }
/** * Find or create a logger for a named package/class. * If a logger has already been created with the given name * it is returned. Otherwise a new logger is created. By default a logger * that uses com.oracle.util.logging will be returned. * * @param messageCatalogName the resource bundle containing the logging messages. * @param loggerID unique name to identify this logger. * @return a suitable Logger. * @throws Exception */ public static Logger getLogger(String messageCatalogName, String loggerID) { String loggerClassName = overrideloggerClassName; Logger logger = null; if (loggerClassName == null) { loggerClassName = DefaultloggerClassName; } // Attempt to create an instance of the logger try { logger = getLogger(loggerClassName, PropertyResourceBundle.getBundle(messageCatalogName, true), loggerID, null) ; } catch (MqttException e) { throw new IllegalStateException("Error locating the logging class: " + loggerClassName + ", " + loggerID); } // If it's still Null create an EmptyLogger if (null == logger) { logger = new EmptyLogger(); } return logger; }
@Override public void onOpen(Connection connection) { if (log.isLoggable(Logger.FINE)) { log.fine(CLASS_NAME, "onOpen", "116", new Object[] { uri.toString() + ", WebSocket CONNECTED." }); } }
@Override public void onClose(int closeCode, String message) { if (log.isLoggable(Logger.FINE)) { log.fine(CLASS_NAME, "onClose", "116", new Object[] { uri.toString() + ", WebSocket CLOSED." }); } }
/** * Create new instance of class. * Constructor used by the broker. */ public SSLSocketFactoryFactory(Logger logger) { this(); this.logger = logger; }