Codota Logo
WaffleAuthenticatorBase
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: Waffle/waffle

@Override
public synchronized void startInternal() throws LifecycleException {
  this.log.info("[waffle.apache.NegotiateAuthenticator] 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.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: 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.MixedAuthenticator] 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

  • Finding current android device location
  • findViewById (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Reference (javax.naming)
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now