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: RememberMe.java 3643 2007-01-12 15:29:45Z gbevin $
07: */
08: package com.uwyn.rife.authentication.credentials;
09:
10: /**
11: * <p>This interface needs to be implemented by all credentials classes that
12: * are allowed to be remembered.
13: *
14: * @author Geert Bevin (gbevin[remove] at uwyn dot com)
15: * @version $Revision: 3643 $
16: * @since 1.0
17: */
18: public interface RememberMe {
19: /**
20: * Indicates whether the submitted credentials should be remembered.
21: *
22: * @return {@code true} if the submitted credentials should be
23: * remembered; or
24: * <p>{@code false} otherwise
25: * @since 1.0
26: */
27: public boolean getRemember();
28:
29: /**
30: * Sets whether the submitted credentials should be remembered.
31: *
32: * @param rememberMe {@code true} if the submitted credentials should
33: * be remembered; or {@code false} otherwise
34: * @since 1.0
35: */
36: public void setRemember(boolean rememberMe);
37: }
|