01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: AuthenticatedDeployer.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.authentication.elements;
09:
10: import com.uwyn.rife.authentication.Credentials;
11: import com.uwyn.rife.authentication.SessionValidator;
12: import com.uwyn.rife.engine.ElementDeployer;
13:
14: public abstract class AuthenticatedDeployer extends ElementDeployer {
15: private Class<? extends Credentials> mCredentialsClass = null;
16: private SessionValidator mSessionValidator = null;
17:
18: protected void setCredentialsClass(
19: Class<? extends Credentials> credentialsClass) {
20: assert credentialsClass != null;
21:
22: mCredentialsClass = credentialsClass;
23: }
24:
25: public Class<? extends Credentials> getCredentialsClass() {
26: return mCredentialsClass;
27: }
28:
29: protected void setSessionValidator(SessionValidator sessionValidator) {
30: assert sessionValidator != null;
31:
32: mSessionValidator = sessionValidator;
33: }
34:
35: public SessionValidator getSessionValidator() {
36: return mSessionValidator;
37: }
38: }
|