Tabnine Logo
Authn.isEnabled
Code IndexAdd Tabnine 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)

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

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now