/**
 * Waffle (https://github.com/Waffle/waffle)
 *
 * Copyright (c) 2010-2016 Application Security, Inc.
 *
 * All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse
 * Public License v1.0 which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-v10.html.
 *
 * Contributors: Application Security, Inc.
 */
package waffle.apache;

import java.security.Principal;

import org.apache.catalina.realm.RealmBase;

/**
 * A rudimentary Windows realm.
 * 
 * @author dblock[at]dblock[dot]org
 */
public class WindowsRealm extends RealmBase {

    /** The Constant NAME. */
    protected static final String NAME = "waffle.apache.WindowsRealm/1.0";

    /**
     * @return a short name for this Realm implementation, for use in
     * log messages.
     *
     * Waffle team -> 'waffle.apache.WindowsRealm/1.0' will no longer
     * be logged. We don't internally use this so we must go with
     * standard java way that tomcat has accepted. This means, going
     * to tomcat 9.0.0.M15+ will result simply in 'WaffleRealm' or
     * better stated the actual simple class name. Simple class name
     * strips off the package name with is what we were applying 
     * along with version 1.0 which is inaccurate anyways considering
     * we are on version 1.8.1+ at this point.
     *
     * @deprecated This will be removed in Tomcat 9 onwards. Use
     *             {@link Class#getSimpleName()} instead.
     */
    @Deprecated
    protected String getName() {
        return WindowsRealm.NAME;
    }

    /*
     * (non-Javadoc)
     * @see org.apache.catalina.realm.RealmBase#getPassword(java.lang.String)
     */
    @Override
    protected String getPassword(final String value) {
        return null;
    }

    /*
     * (non-Javadoc)
     * @see org.apache.catalina.realm.RealmBase#getPrincipal(java.lang.String)
     */
    @Override
    protected Principal getPrincipal(final String value) {
        return null;
    }
}

@@ -810,23 +810,16 @@
 r use in
-%0A     *
  log mes
@@ -843,22 +843,15 @@
   * 
-Waffle team -%3E
+       
  'wa
@@ -894,23 +894,16 @@
 o longer
-%0A     *
  be logg
@@ -952,20 +952,28 @@
 t go
- with
 %0A     *
+         with
  sta
@@ -1030,23 +1030,16 @@
 s, going
-%0A     *
  to tomc
@@ -1063,16 +1063,31 @@
 l result
+%0A     *        
  simply 
@@ -1105,23 +1105,16 @@
 ealm' or
-%0A     *
  better 
@@ -1167,23 +1167,16 @@
 ass name
-%0A     *
  strips 
@@ -1182,16 +1182,31 @@
  off the
+%0A     *        
  package
@@ -1241,24 +1241,16 @@
 pplying 
-%0A     * 
 along wi
@@ -1310,16 +1310,24 @@
 g%0A     *
+        
  we are 
@@ -1434,27 +1434,8 @@
  Use
-%0A     *            
  %7B@l

Fix javadoc and format