1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.jetspeed.sso.impl;
21
22 import java.sql.Timestamp;
23 import java.util.Collection;
24 import java.util.Vector;
25
26 import org.apache.jetspeed.sso.SSOCookie;
27
28 /***
29 * @author Roger Ruttimann <rogerrut@apache.org>
30 *
31 */
32 public class SSOCookieImpl implements SSOCookie {
33
34 /***
35 * Internal for storing object values
36 */
37
38 private int cookieId;
39 private String cookie;
40 private Timestamp createDate;
41 private Collection remotePrincipals = new Vector();
42
43
44
45
46 public void setCookieId(int cookieId) {
47 this.cookieId = cookieId;
48 }
49
50
51
52
53 public int getCookieId() {
54 return this.cookieId;
55 }
56
57
58
59
60 public void setCookie(String cookieValue) {
61 this.cookie = cookieValue;
62 }
63
64
65
66
67 public String getCookie() {
68 return this.cookie;
69 }
70
71
72
73
74 public void setCreateDate(Timestamp createDate) {
75 this.createDate = createDate;
76 }
77
78
79
80
81 public Timestamp getCreateDate() {
82 return this.createDate;
83 }
84
85 /***
86 *
87 * @return
88 */
89 public Collection getRemotePrincipals()
90 {
91 return this.remotePrincipals;
92 }
93
94 /***
95 *
96 * @param remotePrincipals
97 */
98 public void setRemotePrincipals(Collection remotePrincipals)
99 {
100 this.remotePrincipals = remotePrincipals;
101 }
102 }