- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
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()); } }
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()); } }