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

How to use
getOauth2
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.getOauth2 (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

 SpringConfig(Security security) {
  OAuth2 oauth2 = security.getAuthn().getOauth2();
  if (oauth2.isEnabled()) {
   this.oauth2 = oauth2;
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

 SpringConfig(Security security) {
  OAuth2 oauth2 = security.getAuthn().getOauth2();
  if (oauth2.isEnabled()) {
   this.oauth2 = oauth2;
  }
 }
}
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: 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: 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;
 }
}
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.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;
 }
}
com.netflix.spinnaker.halyard.config.model.v1.securityAuthngetOauth2

Popular methods of Authn

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

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • orElseThrow (Optional)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JList (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