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

How to use
getLdap
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.getLdap (Showing top 10 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: spinnaker/halyard

 public LdapConfig(Security security) {
  if (!security.getAuthn().getLdap().isEnabled()) {
   return;
  }

  Ldap ldap = security.getAuthn().getLdap();

  this.enabled = ldap.isEnabled();
  this.url = ldap.getUrl();
  this.userDnPattern = ldap.getUserDnPattern();
  this.userSearchBase = ldap.getUserSearchBase();
  this.userSearchFilter = ldap.getUserSearchFilter();
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 public LdapConfig(Security security) {
  if (!security.getAuthn().getLdap().isEnabled()) {
   return;
  }

  Ldap ldap = security.getAuthn().getLdap();

  this.enabled = ldap.isEnabled();
  this.url = ldap.getUrl();
  this.userDnPattern = ldap.getUserDnPattern();
  this.userSearchBase = ldap.getUserSearchBase();
  this.userSearchFilter = ldap.getUserSearchFilter();
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

 /**
  * @return True if any core field in an authentication method has a non-empty value. "Core fields"
  * are generally required fields to make an authentication method work, such as client ID/secret,
  * or path to a certficate store.
  */
 private boolean maybeShouldBeEnabled(Authn n) {
  OAuth2 o = n.getOauth2();
  Saml s = n.getSaml();
  Ldap l = n.getLdap();
  IAP i = n.getIap();
  // There isn't a good "core fields" for X509

  return StringUtils.isNotEmpty(o.getClient().getClientId()) ||
    StringUtils.isNotEmpty(o.getClient().getClientSecret()) ||
    StringUtils.isNotEmpty(s.getIssuerId()) ||
    StringUtils.isNotEmpty(s.getKeyStore()) ||
    StringUtils.isNotEmpty(l.getUserDnPattern()) ||
    StringUtils.isNotEmpty(l.getUserSearchBase()) ||
    StringUtils.isNotEmpty(l.getUserSearchFilter()) ||
    StringUtils.isNotEmpty(i.getAudience());
 }
}
origin: spinnaker/halyard

 /**
  * @return True if any core field in an authentication method has a non-empty value. "Core fields"
  * are generally required fields to make an authentication method work, such as client ID/secret,
  * or path to a certficate store.
  */
 private boolean maybeShouldBeEnabled(Authn n) {
  OAuth2 o = n.getOauth2();
  Saml s = n.getSaml();
  Ldap l = n.getLdap();
  IAP i = n.getIap();
  // There isn't a good "core fields" for X509

  return StringUtils.isNotEmpty(o.getClient().getClientId()) ||
    StringUtils.isNotEmpty(o.getClient().getClientSecret()) ||
    StringUtils.isNotEmpty(s.getIssuerId()) ||
    StringUtils.isNotEmpty(s.getKeyStore()) ||
    StringUtils.isNotEmpty(l.getUserDnPattern()) ||
    StringUtils.isNotEmpty(l.getUserSearchBase()) ||
    StringUtils.isNotEmpty(l.getUserSearchFilter()) ||
    StringUtils.isNotEmpty(i.getAudience());
 }
}
origin: spinnaker/halyard

public boolean isEnabled() {
 return getOauth2().isEnabled() || getSaml().isEnabled() || getLdap().isEnabled()
   || getX509().isEnabled() || getIap().isEnabled();
}
origin: com.netflix.spinnaker.halyard/halyard-config

public boolean isEnabled() {
 return getOauth2().isEnabled() || getSaml().isEnabled() || getLdap().isEnabled()
   || getX509().isEnabled() || getIap().isEnabled();
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 protected GateConfig getGateConfig(ServiceSettings gate, Security security) {
  GateConfig config = new GateConfig(gate, security);

  if (security.getAuthn().getOauth2().isEnabled()) {
   config.spring = new SpringConfig(security);
  } else if (security.getAuthn().getSaml().isEnabled()) {
   config.saml = new SamlConfig(security);
  } else if (security.getAuthn().getLdap().isEnabled()) {
   config.ldap = new LdapConfig(security);
  } else if (security.getAuthn().getIap().isEnabled()) {
   config.google.iap = new IAPConfig(security);
  }

  if (security.getAuthn().getX509().isEnabled()) {
   config.x509 = new X509Config(security);
  }

  return config;
 }
}
origin: spinnaker/halyard

 @Override
 protected GateConfig getGateConfig(ServiceSettings gate, Security security) {
  GateConfig config = new GateConfig(gate, security);

  if (security.getAuthn().getOauth2().isEnabled()) {
   config.security.oauth2 = security.getAuthn().getOauth2();
  } else if (security.getAuthn().getSaml().isEnabled()) {
   config.saml = new SamlConfig(security);
  } else if (security.getAuthn().getLdap().isEnabled()) {
   config.ldap = new LdapConfig(security);
  } else if (security.getAuthn().getIap().isEnabled()) {
   config.google.iap = new IAPConfig(security);
  }

  if (security.getAuthn().getX509().isEnabled()) {
   config.x509 = new X509Config(security);
  }

  return config;
 }
}
origin: spinnaker/halyard

 @Override
 protected GateConfig getGateConfig(ServiceSettings gate, Security security) {
  GateConfig config = new GateConfig(gate, security);

  if (security.getAuthn().getOauth2().isEnabled()) {
   config.spring = new SpringConfig(security);
  } else if (security.getAuthn().getSaml().isEnabled()) {
   config.saml = new SamlConfig(security);
  } else if (security.getAuthn().getLdap().isEnabled()) {
   config.ldap = new LdapConfig(security);
  } else if (security.getAuthn().getIap().isEnabled()) {
   config.google.iap = new IAPConfig(security);
  }

  if (security.getAuthn().getX509().isEnabled()) {
   config.x509 = new X509Config(security);
  }

  return config;
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 @Override
 protected GateConfig getGateConfig(ServiceSettings gate, Security security) {
  GateConfig config = new GateConfig(gate, security);

  if (security.getAuthn().getOauth2().isEnabled()) {
   config.security.oauth2 = security.getAuthn().getOauth2();
  } else if (security.getAuthn().getSaml().isEnabled()) {
   config.saml = new SamlConfig(security);
  } else if (security.getAuthn().getLdap().isEnabled()) {
   config.ldap = new LdapConfig(security);
  } else if (security.getAuthn().getIap().isEnabled()) {
   config.google.iap = new IAPConfig(security);
  }

  if (security.getAuthn().getX509().isEnabled()) {
   config.x509 = new X509Config(security);
  }

  return config;
 }
}
com.netflix.spinnaker.halyard.config.model.v1.securityAuthngetLdap

Popular methods of Authn

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

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
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