congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NullRealm
Code IndexAdd Tabnine to your IDE (free)

How to use
NullRealm
in
org.apache.catalina.realm

Best Java code snippets using org.apache.catalina.realm.NullRealm (Showing top 8 results out of 315)

origin: line/armeria

realm = new NullRealm();
origin: line/armeria

/**
 * Returns the {@link Engine} of the specified Tomcat {@link Service}. If the {@link Service} has no
 * {@link Engine} set, a new {@link Engine} will be created and set.
 *
 * <p>The return type of {@link Service#getContainer()} has been changed from {@link Container} to
 * {@link Engine} since 8.5. Calling it directly will cause {@link NoSuchMethodError}.
 */
static Engine engine(Service service, String hostname) {
  final Engine engine;
  try {
    final Method m = Service.class.getDeclaredMethod("getContainer");
    engine = (Engine) m.invoke(service);
  } catch (Exception e) {
    throw new Error("failed to invoke Service.getContainer()", e);
  }
  if (engine != null) {
    return engine;
  }
  // Create a new engine.
  final Engine newEngine = new StandardEngine();
  newEngine.setName("Tomcat");
  newEngine.setDefaultHost(hostname);
  newEngine.setRealm(new NullRealm());
  service.setContainer(newEngine);
  return newEngine;
}
origin: org.apache.tomcat/tomcat-catalina

/**
 * Obtain the configured Realm and provide a default Realm implementation
 * when no explicit configuration is set.
 *
 * @return configured realm, or a {@link NullRealm} by default
 */
@Override
public Realm getRealm() {
  Realm configured = super.getRealm();
  // If no set realm has been called - default to NullRealm
  // This can be overridden at engine, context and host level
  if (configured == null) {
    configured = new NullRealm();
    this.setRealm(configured);
  }
  return configured;
}
origin: codefollower/Tomcat-Research

/**
 * Obtain the configured Realm and provide a default Realm implementation
 * when no explicit configuration is set.
 *
 * @return configured realm, or a {@link NullRealm} by default
 */
@Override
public Realm getRealm() {
  Realm configured = super.getRealm();
  // If no set realm has been called - default to NullRealm
  // This can be overridden at engine, context and host level
  if (configured == null) {
    configured = new NullRealm();
    this.setRealm(configured);
  }
  return configured;
}
origin: org.apache.catalina/com.springsource.org.apache.catalina

/**
 * Obtain the configured Realm and provide a default Realm implementation
 * when no explicit configuration is set.
 *
 * @return configured realm, or a {@link NullRealm} by default
 */
@Override
public Realm getRealm() {
  Realm configured = super.getRealm();
  // If no set realm has been called - default to NullRealm
  // This can be overridden at engine, context and host level  
  if (configured == null) {
    configured = new NullRealm();
    this.setRealm(configured);
  }
  return configured;
}
origin: org.apache.geronimo.ext.tomcat/catalina

/**
 * Obtain the configured Realm and provide a default Realm implementation
 * when no explicit configuration is set.
 *
 * @return configured realm, or a {@link NullRealm} by default
 */
@Override
public Realm getRealm() {
  Realm configured = super.getRealm();
  // If no set realm has been called - default to NullRealm
  // This can be overridden at engine, context and host level  
  if (configured == null) {
    configured = new NullRealm();
    this.setRealm(configured);
  }
  return configured;
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Obtain the configured Realm and provide a default Realm implementation
 * when no explicit configuration is set.
 *
 * @return configured realm, or a {@link NullRealm} by default
 */
@Override
public Realm getRealm() {
  Realm configured = super.getRealm();
  // If no set realm has been called - default to NullRealm
  // This can be overridden at engine, context and host level
  if (configured == null) {
    configured = new NullRealm();
    this.setRealm(configured);
  }
  return configured;
}
origin: Red5/red5-plugins

  embedded.getEngine().setRealm(realm);
} else {
  realm = new NullRealm();
  embedded.getEngine().setRealm(realm);
org.apache.catalina.realmNullRealm

Javadoc

Minimal Realm implementation that always returns null when an attempt is made to validate a user name and password. It is intended to be used as a default Realm implementation when no other Realm is specified.

Most used methods

  • <init>

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • JButton (javax.swing)
  • JList (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Github Copilot alternatives
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