head	1.8;
access;
symbols
	TIGRIS_1_1_0RC2:1.2.2.2
	TIGRIS_1_1_0RC1:1.2.2.2
	TIGRIS_1_1:1.2.2.2.0.2
	TIGRIS_1_0_8:1.2.2.2
	TIGRIS_1_0_8RC3:1.2.2.2
	TIGRIS_1_0_8RC2:1.2.2.2
	TIGRIS_1_0_8RC1:1.2.2.2
	TIGRIS_1_0_7:1.2.2.2
	TIGRIS_1_0_7RC3:1.2.2.2
	TIGRIS_1_0_7RC2:1.2.2.2
	TIGRIS_1_0_7RC1:1.2.2.2
	TIGRIS_1_0_6:1.2.2.2
	TIGRIS_1_0_6RC5:1.2.2.2
	TIGRIS_1_0_6RC4:1.2.2.2
	TIGRIS_1_0_6RC3:1.2.2.2
	TIGRIS_1_0_6RC2:1.2.2.2
	TIGRIS_1_0_6RC1:1.2.2.2
	TIGRIS_1_0_5:1.2.2.2
	TIGRIS_1_0_5RC6:1.2.2.2
	TIGRIS_1_0_5RC5:1.2.2.2
	TIGRIS_1_0_5RC4:1.2.2.2
	TIGRIS_1_0_5RC3:1.2.2.2
	TIGRIS_1_0_5RC2:1.2.2.2
	TIGRIS_1_0_5RC1:1.2.2.2
	TIGRIS_1_0_4:1.2.2.2
	TIGRIS_1_0_3:1.2.2.2
	TIGRIS_1_0_2:1.2.2.2
	TIGRIS_1_0_1:1.2.2.2
	TIGRIS_1_0:1.2.2.2.0.4
	TIGRIS_1_0_0:1.2.2.2
	TIGRIS_1_0_0_RC1:1.2.0.2;
locks; strict;
comment	@# @;


1.8
date	2001.08.11.09.08.08;	author dlr;	state Exp;
branches;
next	1.7;

1.7
date	2001.08.06.22.49.26;	author dlr;	state Exp;
branches;
next	1.6;

1.6
date	2001.05.23.01.50.21;	author dlr;	state Exp;
branches;
next	1.5;

1.5
date	2001.04.05.22.09.02;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2001.04.03.09.27.28;	author manoj;	state Exp;
branches;
next	1.3;

1.3
date	2001.04.02.08.34.28;	author dlr;	state Exp;
branches;
next	1.2;

1.2
date	2001.03.22.01.01.35;	author dlr;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2001.03.22.00.54.01;	author dlr;	state Exp;
branches;
next	;

1.2.2.1
date	2001.04.05.22.01.18;	author dlr;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	2001.04.05.22.08.31;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Upgrading to Turbine 3.0-dev, Fulcrum 1.0, and Torque 1.0.
@
text
@/* ================================================================
 * Copyright (c) 2000-2001 CollabNet.  All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
 * met:
 * 
 * 1. Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 * 
 * 2. Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * 
 * 3. The end-user documentation included with the redistribution, if
 * any, must include the following acknowlegement: "This product includes
 * software developed by CollabNet (http://www.collab.net/)."
 * Alternately, this acknowlegement may appear in the software itself, if
 * and wherever such third-party acknowlegements normally appear.
 * 
 * 4. The hosted project names must not be used to endorse or promote
 * products derived from this software without prior written
 * permission. For written permission, please contact info@@collab.net.
 * 
 * 5. Products derived from this software may not use the "Tigris" name
 * nor may "Tigris" appear in their names without prior written
 * permission of CollabNet.
 * 
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL COLLABNET OR ITS CONTRIBUTORS BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * ====================================================================
 * 
 * This software consists of voluntary contributions made by many
 * individuals on behalf of CollabNet.
 */


package org.tigris.helm.tool;

import java.util.*;
import javax.servlet.ServletConfig;

import org.apache.velocity.context.Context;

import org.apache.fulcrum.Service;
import org.apache.turbine.util.Log;
import org.apache.commons.util.exception.NestableException;

import org.tigris.helm.om.User;

/**
 * Generic identity verification service for checking crypographic identifiers
 * like X.509 certs, etc.
 *
 * @@author <a href="mailto:dlr@@collab.net">Daniel Rall</a>
 * @@author <a href="mailto:leonardr@@collab.net">Leonard Richardson</a>
 * @@version $Id: IdentityVerificationService.java,v 1.7 2001/08/06 22:49:26 dlr Exp $
 */
public interface IdentityVerificationService extends Service
{
    /**
     * The name of this service.
     */
    public static final String SERVICE_NAME = "IdentityVerificationService";

    /**
     * Verifies that the user matches the provided identity.  The
     * functionality of this method can be extended by sub-classing
     * Helm's implementation and <i>calling <code>super.init()</code>
     * before performing additional checks</i>
     *
     * @@param user The user whose identity to check.
     * @@param credential The data to verify the user against.
     * @@return Whether the identity matches the user.
     */
    public boolean verify(User user, Context credential);
}
@


1.7
log
@Tweaked JavaDoc.
@
text
@d55 1
a55 2
import org.apache.turbine.services.*;
import org.apache.turbine.services.resources.*;
d57 1
a57 1
import org.apache.turbine.util.TurbineException;
d67 1
a67 1
 * @@version $Id: IdentityVerificationService.java,v 1.6 2001/05/23 01:50:21 dlr Exp $
@


1.6
log
@Ported Helm from WebMacro to Velocity.
@
text
@d68 1
a68 1
 * @@version $Id: IdentityVerificationService.java,v 1.5 2001/04/05 22:09:02 dlr Exp $
d78 4
a81 1
     * Verifies that the user matches the provided identity.
d83 3
a85 3
     * @@param user  The user whose identity to check.
     * @@param ident The identity to compare to.
     * @@return      Whether the identity matches the user.
d87 1
a87 1
    public boolean verify(User user, Context ctx);
@


1.5
log
@Import only WebContext (as opposed to *).
@
text
@d53 1
a53 1
import org.webmacro.servlet.WebContext;
d58 1
d68 1
a68 1
 * @@version $Id: IdentityVerificationService.java,v 1.4 2001/04/03 09:27:28 manoj Exp $
d84 1
a84 1
    public boolean verify(User user, WebContext ctx);
@


1.4
log
@Change the IdentityVerificationService to use a WebContext, so it can
grab information from places like the servlet request.
@
text
@d53 2
a60 2
import org.webmacro.servlet.*;

d67 1
a67 1
 * @@version $Id: IdentityVerificationService.java,v 1.3 2001/04/02 08:34:28 dlr Exp $
@


1.3
log
@Corrected punctuation of x.509 example.
@
text
@d59 2
d67 1
a67 1
 * @@version $Id: IdentityVerificationService.java,v 1.2 2001/03/22 01:01:35 dlr Exp $
d83 1
a83 1
    public boolean verify(User user, Object ident);
@


1.2
log
@Corrected package name.
@
text
@d61 1
a61 1
 * like X509 certs, etc.
d65 1
a65 1
 * @@version $Id: IdentityVerificationService.java,v 1.1 2001/03/22 00:54:01 dlr Exp $
@


1.2.2.1
log
@Applied Manoj's HEAD modification to verify() signature.
@
text
@d65 1
a65 1
 * @@version $Id: IdentityVerificationService.java,v 1.2 2001/03/22 01:01:35 dlr Exp $
d81 1
a81 1
    public boolean verify(User user, WebContext ctx);
@


1.2.2.2
log
@Missed the import of WebContext on last merge--now added.
@
text
@a52 2
import org.webmacro.servlet.WebContext;

d65 1
a65 1
 * @@version $Id: IdentityVerificationService.java,v 1.2.2.1 2001/04/05 22:01:18 dlr Exp $
@


1.1
log
@Generic identity verification service for checking crypographic identifiers
like X509 certs, etc.
@
text
@d48 1
a48 1
package org.tigris.helm.tool.tool;
d65 1
a65 1
 * @@version $Id: $
@

