View Javadoc
1   /**
2    * Waffle (https://github.com/dblock/waffle)
3    *
4    * Copyright (c) 2010 - 2015 Application Security, Inc.
5    *
6    * All rights reserved. This program and the accompanying materials
7    * are made available under the terms of the Eclipse Public License v1.0
8    * which accompanies this distribution, and is available at
9    * http://www.eclipse.org/legal/epl-v10.html
10   *
11   * Contributors:
12   *     Application Security, Inc.
13   */
14  package waffle.apache;
15  
16  import java.security.Principal;
17  
18  import org.apache.catalina.realm.RealmBase;
19  
20  /**
21   * A rudimentary Windows realm.
22   * 
23   * @author dblock[at]dblock[dot]org
24   */
25  public class WindowsRealm extends RealmBase {
26  
27      /** The Constant NAME. */
28      protected static final String NAME = "waffle.apache.WindowsRealm/1.0";
29  
30      /* (non-Javadoc)
31       * @see org.apache.catalina.realm.RealmBase#getName()
32       */
33      @Override
34      protected String getName() {
35          return WindowsRealm.NAME;
36      }
37  
38      /* (non-Javadoc)
39       * @see org.apache.catalina.realm.RealmBase#getPassword(java.lang.String)
40       */
41      @Override
42      protected String getPassword(final String value) {
43          return null;
44      }
45  
46      /* (non-Javadoc)
47       * @see org.apache.catalina.realm.RealmBase#getPrincipal(java.lang.String)
48       */
49      @Override
50      protected Principal getPrincipal(final String value) {
51          return null;
52      }
53  }