Codota Logo
Authn.isEnabled
Code IndexAdd Codota to your IDE (free)

How to use
isEnabled
method
in
com.netflix.spinnaker.halyard.config.model.v1.security.Authn

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.security.Authn.isEnabled (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: com.netflix.spinnaker.halyard/halyard-config

@Override
public void validate(ConfigProblemSetBuilder p, Authn n) {
 if (!n.isEnabled() && maybeShouldBeEnabled(n)) {
  p.addProblem(Problem.Severity.WARNING, "An authentication method is fully or " +
    "partially configured, but not enabled. It must be enabled to take effect.");
 }
}
origin: spinnaker/halyard

@Override
public void validate(ConfigProblemSetBuilder p, Authn n) {
 if (!n.isEnabled() && maybeShouldBeEnabled(n)) {
  p.addProblem(Problem.Severity.WARNING, "An authentication method is fully or " +
    "partially configured, but not enabled. It must be enabled to take effect.");
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

 public boolean isAuth(DeploymentConfiguration deploymentConfiguration) {
  return deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 }
}
origin: spinnaker/halyard

 public boolean isAuth(DeploymentConfiguration deploymentConfiguration) {
  return deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 }
}
origin: spinnaker/halyard

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);

  ServiceSettings deckSettings = endpoints.getServiceSettings(Type.DECK);
  ServiceSettings gateSettings = endpoints.getServiceSettings(Type.GATE);
  ApacheSsl apacheSsl= deploymentConfiguration.getSecurity().getUiSecurity().getSsl();
  Map<String, String> env = profile.getEnv();

  if (apacheSsl.isEnabled()) {
   env.put("DECK_HOST", deckSettings.getHost());
   env.put("DECK_PORT", deckSettings.getPort() + "");
   env.put("API_HOST", gateSettings.getBaseUrl());
   env.put("DECK_CERT", apacheSsl.getSslCertificateFile());
   env.put("DECK_KEY", apacheSsl.getSslCertificateKeyFile());
   env.put("PASSPHRASE", apacheSsl.getSslCertificatePassphrase());
  }

  env.put("AUTH_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthn().isEnabled()));
  env.put("FIAT_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled()));
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 protected void setProfile(Profile profile, DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints) {
  super.setProfile(profile, deploymentConfiguration, endpoints);

  ServiceSettings deckSettings = endpoints.getServiceSettings(Type.DECK);
  ServiceSettings gateSettings = endpoints.getServiceSettings(Type.GATE);
  ApacheSsl apacheSsl= deploymentConfiguration.getSecurity().getUiSecurity().getSsl();
  Map<String, String> env = profile.getEnv();

  if (apacheSsl.isEnabled()) {
   env.put("DECK_HOST", deckSettings.getHost());
   env.put("DECK_PORT", deckSettings.getPort() + "");
   env.put("API_HOST", gateSettings.getBaseUrl());
   env.put("DECK_CERT", apacheSsl.getSslCertificateFile());
   env.put("DECK_KEY", apacheSsl.getSslCertificateKeyFile());
   env.put("PASSPHRASE", apacheSsl.getSslCertificatePassphrase());
  }

  env.put("AUTH_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthn().isEnabled()));
  env.put("FIAT_ENABLED", Boolean.toString(deploymentConfiguration.getSecurity().getAuthz().isEnabled()));
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getUiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: spinnaker/halyard

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: spinnaker/halyard

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getUiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: spinnaker/halyard

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 boolean authEnabled = deploymentConfiguration.getSecurity().getAuthn().isEnabled();
 return new Settings(deploymentConfiguration.getSecurity().getApiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(authEnabled ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 Security security = deploymentConfiguration.getSecurity();
 if (security.getUiSecurity().getSsl().isEnabled()) {
  setEnvTrue("DECK_HTTPS");
  setEnv("DECK_CERT", security.getUiSecurity().getSsl().getSslCertificateFile());
  setEnv("DECK_KEY", security.getUiSecurity().getSsl().getSslCertificateKeyFile());
  setEnv("DECK_CA_CERT", security.getUiSecurity().getSsl().getSslCACertificateFile());
 }
 if (security.getAuthn().isEnabled()) {
  setEnvTrue("AUTH_ENABLED");
  setEnv("DECK_HOST", "0.0.0.0");
 }
 if (security.getAuthz().isEnabled()) {
  setEnvTrue("FIAT_ENABLED");
 }
 return new Settings(security.getUiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(security.getAuthn().isEnabled() ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
origin: spinnaker/halyard

@Override
public ServiceSettings buildServiceSettings(DeploymentConfiguration deploymentConfiguration) {
 Security security = deploymentConfiguration.getSecurity();
 if (security.getUiSecurity().getSsl().isEnabled()) {
  setEnvTrue("DECK_HTTPS");
  setEnv("DECK_CERT", security.getUiSecurity().getSsl().getSslCertificateFile());
  setEnv("DECK_KEY", security.getUiSecurity().getSsl().getSslCertificateKeyFile());
  setEnv("DECK_CA_CERT", security.getUiSecurity().getSsl().getSslCACertificateFile());
 }
 if (security.getAuthn().isEnabled()) {
  setEnvTrue("AUTH_ENABLED");
  setEnv("DECK_HOST", "0.0.0.0");
 }
 if (security.getAuthz().isEnabled()) {
  setEnvTrue("FIAT_ENABLED");
 }
 return new Settings(security.getUiSecurity())
   .setArtifactId(getArtifactId(deploymentConfiguration.getName()))
   .setHost(security.getAuthn().isEnabled() ? "0.0.0.0" : getDefaultHost())
   .setEnabled(true);
}
com.netflix.spinnaker.halyard.config.model.v1.securityAuthnisEnabled

Popular methods of Authn

  • getIap
  • getLdap
  • getOauth2
  • getSaml
  • getX509
  • <init>
  • setIap
  • setLdap
  • setOauth2
  • setSaml
  • setX509
  • setX509

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • requestLocationUpdates (LocationManager)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ImageIO (javax.imageio)
  • JPanel (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