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

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

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

origin: magro/memcached-session-manager

public boolean contextHasFormBasedSecurityConstraint(){
  if(_contextHasFormBasedSecurityConstraint != null) {
    return _contextHasFormBasedSecurityConstraint.booleanValue();
  }
  final SecurityConstraint[] constraints = getContext().findConstraints();
  final LoginConfig loginConfig = getContext().getLoginConfig();
  _contextHasFormBasedSecurityConstraint = constraints != null && constraints.length > 0
      && loginConfig != null && HttpServletRequest.FORM_AUTH.equals( loginConfig.getAuthMethod() );
  return _contextHasFormBasedSecurityConstraint;
}
origin: magro/memcached-session-manager

public boolean contextHasFormBasedSecurityConstraint(){
  if(_contextHasFormBasedSecurityConstraint != null) {
    return _contextHasFormBasedSecurityConstraint.booleanValue();
  }
  final SecurityConstraint[] constraints = getContext().findConstraints();
  final LoginConfig loginConfig = getContext().getLoginConfig();
  _contextHasFormBasedSecurityConstraint = constraints != null && constraints.length > 0
      && loginConfig != null && HttpServletRequest.FORM_AUTH.equals( loginConfig.getAuthMethod() );
  return _contextHasFormBasedSecurityConstraint;
}
origin: de.javakaffee.msm/memcached-session-manager-tc8

public boolean contextHasFormBasedSecurityConstraint(){
  if(_contextHasFormBasedSecurityConstraint != null) {
    return _contextHasFormBasedSecurityConstraint.booleanValue();
  }
  final SecurityConstraint[] constraints = getContext().findConstraints();
  final LoginConfig loginConfig = getContext().getLoginConfig();
  _contextHasFormBasedSecurityConstraint = constraints != null && constraints.length > 0
      && loginConfig != null && HttpServletRequest.FORM_AUTH.equals( loginConfig.getAuthMethod() );
  return _contextHasFormBasedSecurityConstraint;
}
origin: org.apache.tomcat/tomcat-catalina

authenticator = (Valve) customAuthenticators.get(loginConfig.getAuthMethod());
String authenticatorName = authenticators.getProperty(loginConfig.getAuthMethod());
if (authenticatorName == null) {
  log.error(sm.getString("contextConfig.authenticatorMissing",
           loginConfig.getAuthMethod()));
  ok = false;
  return;
    log.debug(sm.getString(
            "contextConfig.authenticatorConfigured",
            loginConfig.getAuthMethod()));
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

authenticator = (Valve) customAuthenticators.get(loginConfig.getAuthMethod());
String authenticatorName = authenticators.getProperty(loginConfig.getAuthMethod());
if (authenticatorName == null) {
  log.error(sm.getString("contextConfig.authenticatorMissing",
           loginConfig.getAuthMethod()));
  ok = false;
  return;
    log.debug(sm.getString(
            "contextConfig.authenticatorConfigured",
            loginConfig.getAuthMethod()));
origin: codefollower/Tomcat-Research

if (customAuthenticators != null) {
  authenticator = (Valve)
    customAuthenticators.get(loginConfig.getAuthMethod());
      authenticators.getProperty(loginConfig.getAuthMethod());
  if (authenticatorName == null) {
    log.error(sm.getString("contextConfig.authenticatorMissing",
             loginConfig.getAuthMethod()));
    ok = false;
    return;
      log.debug(sm.getString(
              "contextConfig.authenticatorConfigured",
              loginConfig.getAuthMethod()));
origin: codefollower/Tomcat-Research

sb.append("  <login-config>\n");
appendElement(sb, INDENT4, "auth-method",
    loginConfig.getAuthMethod());
appendElement(sb,INDENT4, "realm-name",
    loginConfig.getRealmName());
origin: org.apache.tomcat/tomcat-util-scan

sb.append("  <login-config>\n");
appendElement(sb, INDENT4, "auth-method",
    loginConfig.getAuthMethod());
appendElement(sb,INDENT4, "realm-name",
    loginConfig.getRealmName());
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

sb.append("  <login-config>\n");
appendElement(sb, INDENT4, "auth-method",
    loginConfig.getAuthMethod());
appendElement(sb,INDENT4, "realm-name",
    loginConfig.getRealmName());
org.apache.tomcat.util.descriptor.webLoginConfiggetAuthMethod

Popular methods of LoginConfig

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

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top 12 Jupyter Notebook Extensions
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