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: ValidAuthElement.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.authentication.elements.testelements.sessionvalidatorretriever;
09:
10: import com.uwyn.rife.authentication.SessionValidatorRetriever;
11: import com.uwyn.rife.authentication.exceptions.CredentialsManagerException;
12: import com.uwyn.rife.engine.Element;
13:
14: public class ValidAuthElement extends Element {
15: public void processElement() {
16: try {
17: print(SessionValidatorRetriever.getSessionValidator(
18: getSite(), ".INPUT.MEMORY_AUTHENTICATED_BASIC",
19: null).getClass().getName());
20: } catch (CredentialsManagerException e) {
21: print(e.getMessage());
22: }
23: }
24: }
|