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

How to use
setOauth2
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.setOauth2 (Showing top 2 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 void setAuthnMethod(String deploymentName, AuthnMethod method) {
 Authn authn = getAuthn(deploymentName);
 switch (method.getMethod()) {
  case OAuth2:
   authn.setOauth2((OAuth2) method);
   break;
  case SAML:
   authn.setSaml((Saml) method);
   break;
  case LDAP:
   authn.setLdap((Ldap) method);
   break;
  case X509:
   authn.setX509((X509) method);
   break;
  case IAP:
   authn.setIap((IAP) method);
   break;
  default:
   throw new RuntimeException("Unknown Authn method " + method.getMethod());
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

public void setAuthnMethod(String deploymentName, AuthnMethod method) {
 Authn authn = getAuthn(deploymentName);
 switch (method.getMethod()) {
  case OAuth2:
   authn.setOauth2((OAuth2) method);
   break;
  case SAML:
   authn.setSaml((Saml) method);
   break;
  case LDAP:
   authn.setLdap((Ldap) method);
   break;
  case X509:
   authn.setX509((X509) method);
   break;
  case IAP:
   authn.setIap((IAP) method);
   break;
  default:
   throw new RuntimeException("Unknown Authn method " + method.getMethod());
 }
}
com.netflix.spinnaker.halyard.config.model.v1.securityAuthnsetOauth2

Popular methods of Authn

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

Popular in Java

  • Start an intent from android
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
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