01: /*
02: * Copyright 2001-2007 Steven Grimm <koreth[remove] at midwinter 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$
07: */
08: package com.uwyn.rife.authentication.remembermanagers;
09:
10: import com.uwyn.rife.authentication.RememberManager;
11:
12: /**
13: * Dummy custom remember manager class; just a mock we use to make sure
14: * we can instantiate custom remember managers. */
15: public class CustomRememberManager implements RememberManager {
16: private String mId;
17:
18: public CustomRememberManager(String id) {
19: mId = id;
20: }
21:
22: public String getId() {
23: return mId;
24: }
25:
26: public String createRememberId(long userId, String hostIp) {
27: return null;
28: }
29:
30: public void eraseAllRememberIds() {
31: }
32:
33: public boolean eraseRememberId(String rememberId) {
34: return false;
35: }
36:
37: public boolean eraseUserRememberIds(long userId) {
38: return false;
39: }
40:
41: public long getRememberDuration() {
42: return 0;
43: }
44:
45: public long getRememberedUserId(String rememberId) {
46: return 0;
47: }
48:
49: public void purgeRememberIds() {
50: }
51:
52: public void setRememberDuration(long milliseconds) {
53: }
54: }
|