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.credentialsmanagers;
09:
10: import com.uwyn.rife.authentication.Credentials;
11: import com.uwyn.rife.authentication.CredentialsManager;
12:
13: /**
14: * Dummy credentials manager used to verify that we can use our own
15: * credentials manager.
16: */
17: public class CustomCredentialsManager implements CredentialsManager {
18: private String mId;
19:
20: public CustomCredentialsManager() {
21: }
22:
23: public CustomCredentialsManager(String id) {
24: mId = id;
25: }
26:
27: public String getId() {
28: return mId;
29: }
30:
31: public long verifyCredentials(Credentials credentials) {
32: return 0;
33: }
34: }
|