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
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Socket (java.net)
    Provides a client-side TCP socket.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now