1 /*
2 * Copyright (2005-2009) Schibsted Søk AS
3 * This file is part of SESAT.
4 *
5 * SESAT is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Affero General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * SESAT is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Affero General Public License for more details.
14 *
15 * You should have received a copy of the GNU Affero General Public License
16 * along with SESAT. If not, see <http://www.gnu.org/licenses/>.
17 */
18 package no.sesat.search.user;
19
20 import java.util.Date;
21
22 /** A credential a user may have.
23 *
24 * @version $Id$
25 */
26 public interface UserCredential {
27
28 /**
29 *
30 * @return
31 */
32 String getCredential();
33
34 void setCredential(final String credential) ;
35
36 /**
37 *
38 * @return
39 */
40 String getConfirmKey();
41
42 void setConfirmKey(final String confirmKey);
43
44 /**
45 *
46 * @return
47 */
48 int getType();
49
50 void setType(final int type);
51
52 /**
53 *
54 * @return
55 */
56 Date getConfirmed();
57
58 void setConfirmed(final Date confirmed);
59
60 /**
61 *
62 * @return
63 */
64 User getUser();
65
66 void setUser(final User user);
67
68 /**
69 *
70 * @return
71 */
72 Long getId();
73 }