Tabnine Logo
LoginConfig.setAuthMethod
Code IndexAdd Tabnine to your IDE (free)

How to use
setAuthMethod
method
in
org.apache.tomcat.util.descriptor.web.LoginConfig

Best Java code snippets using org.apache.tomcat.util.descriptor.web.LoginConfig.setAuthMethod (Showing top 11 results out of 315)

origin: OryxProject/oryx

loginConfig.setAuthMethod("DIGEST");
loginConfig.setRealmName(InMemoryRealm.NAME);
context.setLoginConfig(loginConfig);
origin: apache/meecrowave

public LoginConfigBuilder authMethod(final String authMethod) {
  loginConfig.setAuthMethod(authMethod);
  return this;
}
origin: org.apache.meecrowave/meecrowave-core

public LoginConfigBuilder authMethod(final String authMethod) {
  loginConfig.setAuthMethod(authMethod);
  return this;
}
origin: org.apache.meecrowave/meecrowave-core

public void setAuthMethod(final String authMethod) {
  loginConfig.setAuthMethod(authMethod);
}
origin: apache/meecrowave

public void setAuthMethod(final String authMethod) {
  loginConfig.setAuthMethod(authMethod);
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Construct a new LoginConfig with the specified properties.
 *
 * @param authMethod The authentication method
 * @param realmName The realm name
 * @param loginPage The login page URI
 * @param errorPage The error page URI
 */
public LoginConfig(String authMethod, String realmName,
          String loginPage, String errorPage) {
  super();
  setAuthMethod(authMethod);
  setRealmName(realmName);
  setLoginPage(loginPage);
  setErrorPage(errorPage);
}
origin: codefollower/Tomcat-Research

/**
 * Construct a new LoginConfig with the specified properties.
 *
 * @param authMethod The authentication method
 * @param realmName The realm name
 * @param loginPage The login page URI
 * @param errorPage The error page URI
 */
public LoginConfig(String authMethod, String realmName,
          String loginPage, String errorPage) {
  super();
  setAuthMethod(authMethod);
  setRealmName(realmName);
  setLoginPage(loginPage);
  setErrorPage(errorPage);
}
origin: org.apache.tomcat/tomcat-util-scan

/**
 * Construct a new LoginConfig with the specified properties.
 *
 * @param authMethod The authentication method
 * @param realmName The realm name
 * @param loginPage The login page URI
 * @param errorPage The error page URI
 */
public LoginConfig(String authMethod, String realmName,
          String loginPage, String errorPage) {
  super();
  setAuthMethod(authMethod);
  setRealmName(realmName);
  setLoginPage(loginPage);
  setErrorPage(errorPage);
}
origin: com.github.jsimone/webapp-runner-main

static void enableBasicAuth(Context ctx, boolean enableSSL) {
 LoginConfig loginConfig = new LoginConfig();
 loginConfig.setAuthMethod("BASIC");
 ctx.setLoginConfig(loginConfig);
 ctx.addSecurityRole(AUTH_ROLE);
 SecurityConstraint securityConstraint = new SecurityConstraint();
 securityConstraint.addAuthRole(AUTH_ROLE);
 if (enableSSL) {
  securityConstraint.setUserConstraint(TransportGuarantee.CONFIDENTIAL.toString());
 }
 SecurityCollection securityCollection = new SecurityCollection();
 securityCollection.addPattern("/*");
 securityConstraint.addCollection(securityCollection);
 ctx.addConstraint(securityConstraint);
}
origin: jsimone/webapp-runner

static void enableBasicAuth(Context ctx, boolean enableSSL) {
 LoginConfig loginConfig = new LoginConfig();
 loginConfig.setAuthMethod("BASIC");
 ctx.setLoginConfig(loginConfig);
 ctx.addSecurityRole(AUTH_ROLE);
 SecurityConstraint securityConstraint = new SecurityConstraint();
 securityConstraint.addAuthRole(AUTH_ROLE);
 if (enableSSL) {
  securityConstraint.setUserConstraint(TransportGuarantee.CONFIDENTIAL.toString());
 }
 SecurityCollection securityCollection = new SecurityCollection();
 securityCollection.addPattern("/*");
 securityConstraint.addCollection(securityCollection);
 ctx.addConstraint(securityConstraint);
}
origin: org.keycloak/keycloak-spring-boot-adapter-core

public void customize(Context context) {
  LoginConfig loginConfig = new LoginConfig();
  loginConfig.setAuthMethod("KEYCLOAK");
  context.setLoginConfig(loginConfig);
org.apache.tomcat.util.descriptor.webLoginConfigsetAuthMethod

Popular methods of LoginConfig

  • getErrorPage
  • getLoginPage
  • <init>
    Construct a new LoginConfig with the specified properties.
  • getAuthMethod
  • setErrorPage
  • setLoginPage
  • setRealmName
  • getRealmName
  • equals

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JFrame (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for Android Studio
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