Codota Logo
BrooklynWebConfig.hasNoSecurityOptions
Code IndexAdd Codota to your IDE (free)

How to use
hasNoSecurityOptions
method
in
org.apache.brooklyn.rest.BrooklynWebConfig

Best Java code snippets using org.apache.brooklyn.rest.BrooklynWebConfig.hasNoSecurityOptions (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.apache.brooklyn/brooklyn-rest-resources

if (delegate != null && BrooklynWebConfig.hasNoSecurityOptions(mgmt.getConfig())) {
  log.debug("{} refusing to change from {}: No security provider set in reloaded properties.",
      this, delegate);
origin: org.apache.brooklyn/brooklyn-rest-server

private static Server startServer(ManagementContext mgmt, ContextHandler context, String summary, boolean disableHighAvailability) {
  // TODO this repeats code in BrooklynLauncher / WebServer. should merge the two paths.
  boolean secure = mgmt != null && !BrooklynWebConfig.hasNoSecurityOptions(mgmt.getConfig());
  if (secure) {
    log.debug("Detected security configured, launching server on all network interfaces");
  } else {
    log.debug("Detected no security configured, launching server on loopback (localhost) network interface only");
    if (mgmt!=null) {
      log.debug("Detected no security configured, running on loopback; disabling authentication");
      ((BrooklynProperties)mgmt.getConfig()).put(BrooklynWebConfig.SECURITY_PROVIDER_CLASSNAME, AnyoneSecurityProvider.class.getName());
    }
  }
  if (mgmt != null && disableHighAvailability)
    mgmt.getHighAvailabilityManager().disabled();
  InetSocketAddress bindLocation = new InetSocketAddress(
      secure ? Networking.ANY_NIC : Networking.LOOPBACK,
          Networking.nextAvailablePort(FAVOURITE_PORT));
  return startServer(mgmt, context, summary, bindLocation);
}
org.apache.brooklyn.restBrooklynWebConfighasNoSecurityOptions

Popular methods of BrooklynWebConfig

  • PASSWORD_FOR_USER
  • SALT_FOR_USER
  • SHA256_FOR_USER

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • String (java.lang)
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Reference (javax.naming)
  • JComboBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now