congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
WaffleAuthenticatorBase
Code IndexAdd Tabnine to your IDE (free)

How to use
WaffleAuthenticatorBase
in
waffle.apache

Best Java code snippets using waffle.apache.WaffleAuthenticatorBase (Showing top 20 results out of 315)

origin: Waffle/waffle

@Override
public synchronized void startInternal() throws LifecycleException {
  this.log.info("[waffle.apache.MixedAuthenticator] started");
  super.startInternal();
}
origin: Waffle/waffle

@Override
public synchronized void stopInternal() throws LifecycleException {
  super.stopInternal();
  this.log.info("[waffle.apache.MixedAuthenticator] stopped");
}
origin: Waffle/waffle

@Override
protected Principal doLogin(final Request request, final String username, final String password)
    throws ServletException {
  this.log.debug("logging in: {}", username);
  IWindowsIdentity windowsIdentity;
  try {
    windowsIdentity = this.auth.logonUser(username, password);
  } catch (final Exception e) {
    this.log.error(e.getMessage());
    this.log.trace("", e);
    return super.doLogin(request, username, password);
  }
  // disable guest login
  if (!this.allowGuestLogin && windowsIdentity.isGuest()) {
    this.log.warn("guest login disabled: {}", windowsIdentity.getFqn());
    return super.doLogin(request, username, password);
  }
  try {
    this.log.debug("successfully logged in {} ({})", username, windowsIdentity.getSidString());
    final GenericPrincipal genericPrincipal = this.createPrincipal(windowsIdentity);
    this.log.debug("roles: {}", String.join(", ", genericPrincipal.getRoles()));
    return genericPrincipal;
  } finally {
    windowsIdentity.dispose();
  }
}
origin: com.github.waffle/waffle-tomcat7

@Override
protected Principal doLogin(final Request request, final String username, final String password)
    throws ServletException {
  this.log.debug("logging in: {}", username);
  IWindowsIdentity windowsIdentity;
  try {
    windowsIdentity = this.auth.logonUser(username, password);
  } catch (final Exception e) {
    this.log.error(e.getMessage());
    this.log.trace("", e);
    return super.doLogin(request, username, password);
  }
  // disable guest login
  if (!this.allowGuestLogin && windowsIdentity.isGuest()) {
    this.log.warn("guest login disabled: {}", windowsIdentity.getFqn());
    return super.doLogin(request, username, password);
  }
  try {
    this.log.debug("successfully logged in {} ({})", username, windowsIdentity.getSidString());
    final GenericPrincipal genericPrincipal = this.createPrincipal(windowsIdentity);
    this.log.debug("roles: {}", String.join(", ", genericPrincipal.getRoles()));
    return genericPrincipal;
  } finally {
    windowsIdentity.dispose();
  }
}
origin: Waffle/waffle

@Override
public synchronized void stopInternal() throws LifecycleException {
  super.stopInternal();
  this.log.info("[waffle.apache.MixedAuthenticator] stopped");
}
origin: Waffle/waffle

@Override
public synchronized void startInternal() throws LifecycleException {
  this.log.info("[waffle.apache.NegotiateAuthenticator] started");
  super.startInternal();
}
origin: Waffle/waffle

@Override
protected Principal doLogin(final Request request, final String username, final String password)
    throws ServletException {
  this.log.debug("logging in: {}", username);
  IWindowsIdentity windowsIdentity;
  try {
    windowsIdentity = this.auth.logonUser(username, password);
  } catch (final Exception e) {
    this.log.error(e.getMessage());
    this.log.trace("", e);
    return super.doLogin(request, username, password);
  }
  // disable guest login
  if (!this.allowGuestLogin && windowsIdentity.isGuest()) {
    this.log.warn("guest login disabled: {}", windowsIdentity.getFqn());
    return super.doLogin(request, username, password);
  }
  try {
    this.log.debug("successfully logged in {} ({})", username, windowsIdentity.getSidString());
    final GenericPrincipal genericPrincipal = this.createPrincipal(windowsIdentity);
    this.log.debug("roles: {}", String.join(", ", genericPrincipal.getRoles()));
    return genericPrincipal;
  } finally {
    windowsIdentity.dispose();
  }
}
origin: Waffle/waffle

@Override
public synchronized void stopInternal() throws LifecycleException {
  super.stopInternal();
  this.log.info("[waffle.apache.NegotiateAuthenticator] stopped");
}
origin: Waffle/waffle

@Override
public synchronized void startInternal() throws LifecycleException {
  this.log.info("[waffle.apache.MixedAuthenticator] started");
  super.startInternal();
}
origin: Waffle/waffle

@Override
protected Principal doLogin(final Request request, final String username, final String password)
    throws ServletException {
  this.log.debug("logging in: {}", username);
  IWindowsIdentity windowsIdentity;
  try {
    windowsIdentity = this.auth.logonUser(username, password);
  } catch (final Exception e) {
    this.log.error(e.getMessage());
    this.log.trace("", e);
    return super.doLogin(request, username, password);
  }
  // disable guest login
  if (!this.allowGuestLogin && windowsIdentity.isGuest()) {
    this.log.warn("guest login disabled: {}", windowsIdentity.getFqn());
    return super.doLogin(request, username, password);
  }
  try {
    this.log.debug("successfully logged in {} ({})", username, windowsIdentity.getSidString());
    final GenericPrincipal genericPrincipal = this.createPrincipal(windowsIdentity);
    this.log.debug("roles: {}", String.join(", ", genericPrincipal.getRoles()));
    return genericPrincipal;
  } finally {
    windowsIdentity.dispose();
  }
}
origin: com.github.waffle/waffle-tomcat7

@Override
public synchronized void stopInternal() throws LifecycleException {
  super.stopInternal();
  this.log.info("[waffle.apache.MixedAuthenticator] stopped");
}
origin: com.github.waffle/waffle-tomcat8

@Override
public synchronized void startInternal() throws LifecycleException {
  this.log.info("[waffle.apache.NegotiateAuthenticator] started");
  super.startInternal();
}
origin: Waffle/waffle

@Override
protected Principal doLogin(final Request request, final String username, final String password)
    throws ServletException {
  this.log.debug("logging in: {}", username);
  IWindowsIdentity windowsIdentity;
  try {
    windowsIdentity = this.auth.logonUser(username, password);
  } catch (final Exception e) {
    this.log.error(e.getMessage());
    this.log.trace("", e);
    return super.doLogin(request, username, password);
  }
  // disable guest login
  if (!this.allowGuestLogin && windowsIdentity.isGuest()) {
    this.log.warn("guest login disabled: {}", windowsIdentity.getFqn());
    return super.doLogin(request, username, password);
  }
  try {
    this.log.debug("successfully logged in {} ({})", username, windowsIdentity.getSidString());
    final GenericPrincipal genericPrincipal = this.createPrincipal(windowsIdentity);
    this.log.debug("roles: {}", String.join(", ", genericPrincipal.getRoles()));
    return genericPrincipal;
  } finally {
    windowsIdentity.dispose();
  }
}
origin: com.github.waffle/waffle-tomcat9

@Override
public synchronized void stopInternal() throws LifecycleException {
  super.stopInternal();
  this.log.info("[waffle.apache.NegotiateAuthenticator] stopped");
}
origin: com.github.waffle/waffle-tomcat85

@Override
public synchronized void startInternal() throws LifecycleException {
  this.log.info("[waffle.apache.MixedAuthenticator] started");
  super.startInternal();
}
origin: com.github.waffle/waffle-tomcat9

@Override
protected Principal doLogin(final Request request, final String username, final String password)
    throws ServletException {
  this.log.debug("logging in: {}", username);
  IWindowsIdentity windowsIdentity;
  try {
    windowsIdentity = this.auth.logonUser(username, password);
  } catch (final Exception e) {
    this.log.error(e.getMessage());
    this.log.trace("", e);
    return super.doLogin(request, username, password);
  }
  // disable guest login
  if (!this.allowGuestLogin && windowsIdentity.isGuest()) {
    this.log.warn("guest login disabled: {}", windowsIdentity.getFqn());
    return super.doLogin(request, username, password);
  }
  try {
    this.log.debug("successfully logged in {} ({})", username, windowsIdentity.getSidString());
    final GenericPrincipal genericPrincipal = this.createPrincipal(windowsIdentity);
    this.log.debug("roles: {}", String.join(", ", genericPrincipal.getRoles()));
    return genericPrincipal;
  } finally {
    windowsIdentity.dispose();
  }
}
origin: Waffle/waffle

@Override
public synchronized void stopInternal() throws LifecycleException {
  super.stopInternal();
  this.log.info("[waffle.apache.NegotiateAuthenticator] stopped");
}
origin: Waffle/waffle

@Override
public synchronized void startInternal() throws LifecycleException {
  this.log.info("[waffle.apache.NegotiateAuthenticator] started");
  super.startInternal();
}
origin: com.github.waffle/waffle-tomcat8

@Override
protected Principal doLogin(final Request request, final String username, final String password)
    throws ServletException {
  this.log.debug("logging in: {}", username);
  IWindowsIdentity windowsIdentity;
  try {
    windowsIdentity = this.auth.logonUser(username, password);
  } catch (final Exception e) {
    this.log.error(e.getMessage());
    this.log.trace("", e);
    return super.doLogin(request, username, password);
  }
  // disable guest login
  if (!this.allowGuestLogin && windowsIdentity.isGuest()) {
    this.log.warn("guest login disabled: {}", windowsIdentity.getFqn());
    return super.doLogin(request, username, password);
  }
  try {
    this.log.debug("successfully logged in {} ({})", username, windowsIdentity.getSidString());
    final GenericPrincipal genericPrincipal = this.createPrincipal(windowsIdentity);
    this.log.debug("roles: {}", String.join(", ", genericPrincipal.getRoles()));
    return genericPrincipal;
  } finally {
    windowsIdentity.dispose();
  }
}
origin: Waffle/waffle

@Override
public synchronized void stopInternal() throws LifecycleException {
  super.stopInternal();
  this.log.info("[waffle.apache.NegotiateAuthenticator] stopped");
}
waffle.apacheWaffleAuthenticatorBase

Javadoc

The Class WaffleAuthenticatorBase.

Most used methods

  • startInternal
    Hook to the start and to set up the dependencies.
  • stopInternal
  • createPrincipal
    This method will create an instance of a IWindowsIdentity based GenericPrincipal. It is used for cre

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JFrame (javax.swing)
  • PhpStorm for WordPress
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