1/*2 * Licensed to the Apache Software Foundation (ASF) under one or more3 * contributor license agreements. See the NOTICE file distributed with4 * this work for additional information regarding copyright ownership.5 * The ASF licenses this file to You under the Apache License, Version 2.06 * (the "License"); you may not use this file except in compliance with7 * the License. You may obtain a copy of the License at8*9* http://www.apache.org/licenses/LICENSE-2.010*11* Unless required by applicable law or agreed to in writing, software12* distributed under the License is distributed on an "AS IS" BASIS,13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14* See the License for the specific language governing permissions and15* limitations under the License.16*/1718/*Created on: Nov 23, 2005 */1920packageorg.apache.jetspeed.sso.impl;
2122import java.sql.Timestamp;
23import java.util.Collection;
24import java.util.Vector;
2526import org.apache.jetspeed.sso.SSOCookie;
2728/***29 * @author Roger Ruttimann <rogerrut@apache.org>30 *31 */32publicclassSSOCookieImpl implements SSOCookie {
3334/***35 * Internal for storing object values36 */3738privateint cookieId;
39private String cookie;
40private Timestamp createDate;
41private Collection remotePrincipals = new Vector();
4243/* (non-Javadoc)44 * @see org.apache.jetspeed.sso.SSOCookie#setCookieId(int)45 */46publicvoid setCookieId(int cookieId) {
47this.cookieId = cookieId;
48 }
4950/* (non-Javadoc)51 * @see org.apache.jetspeed.sso.SSOCookie#getCookieId()52 */53publicint getCookieId() {
54returnthis.cookieId;
55 }
5657/* (non-Javadoc)58 * @see org.apache.jetspeed.sso.SSOCookie#setCookie(java.lang.String)59 */60publicvoid setCookie(String cookieValue) {
61this.cookie = cookieValue;
62 }
6364/* (non-Javadoc)65 * @see org.apache.jetspeed.sso.SSOCookie#getCookie()66 */67public String getCookie() {
68returnthis.cookie;
69 }
7071/* (non-Javadoc)72 * @see org.apache.jetspeed.sso.SSOCookie#setCreateDate(java.sql.Timestamp)73 */74publicvoid setCreateDate(Timestamp createDate) {
75this.createDate = createDate;
76 }
7778/* (non-Javadoc)79 * @see org.apache.jetspeed.sso.SSOCookie#getCreateDate()80 */81public Timestamp getCreateDate() {
82returnthis.createDate;
83 }
8485/***86 * 87 * @return88 */89public Collection getRemotePrincipals()
90 {
91returnthis.remotePrincipals;
92 }
9394/***95 * 96 * @param remotePrincipals97 */98publicvoid setRemotePrincipals(Collection remotePrincipals)
99 {
100this.remotePrincipals = remotePrincipals;
101 }
102 }