WindowsRealm.java

/**
 * Waffle (https://github.com/dblock/waffle)
 *
 * Copyright (c) 2010 - 2015 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
 * http://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";

    /* (non-Javadoc)
     * @see org.apache.catalina.realm.RealmBase#getName()
     */
    @Override
    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;
    }
}