001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: /*Created on: Nov 23, 2005 */
019:
020: package org.apache.jetspeed.sso.impl;
021:
022: import java.sql.Timestamp;
023: import java.util.Collection;
024: import java.util.Vector;
025:
026: import org.apache.jetspeed.sso.SSOCookie;
027:
028: /**
029: * @author Roger Ruttimann <rogerrut@apache.org>
030: *
031: */
032: public class SSOCookieImpl implements SSOCookie {
033:
034: /**
035: * Internal for storing object values
036: */
037:
038: private int cookieId;
039: private String cookie;
040: private Timestamp createDate;
041: private Collection remotePrincipals = new Vector();
042:
043: /* (non-Javadoc)
044: * @see org.apache.jetspeed.sso.SSOCookie#setCookieId(int)
045: */
046: public void setCookieId(int cookieId) {
047: this .cookieId = cookieId;
048: }
049:
050: /* (non-Javadoc)
051: * @see org.apache.jetspeed.sso.SSOCookie#getCookieId()
052: */
053: public int getCookieId() {
054: return this .cookieId;
055: }
056:
057: /* (non-Javadoc)
058: * @see org.apache.jetspeed.sso.SSOCookie#setCookie(java.lang.String)
059: */
060: public void setCookie(String cookieValue) {
061: this .cookie = cookieValue;
062: }
063:
064: /* (non-Javadoc)
065: * @see org.apache.jetspeed.sso.SSOCookie#getCookie()
066: */
067: public String getCookie() {
068: return this .cookie;
069: }
070:
071: /* (non-Javadoc)
072: * @see org.apache.jetspeed.sso.SSOCookie#setCreateDate(java.sql.Timestamp)
073: */
074: public void setCreateDate(Timestamp createDate) {
075: this .createDate = createDate;
076: }
077:
078: /* (non-Javadoc)
079: * @see org.apache.jetspeed.sso.SSOCookie#getCreateDate()
080: */
081: public Timestamp getCreateDate() {
082: return this .createDate;
083: }
084:
085: /**
086: *
087: * @return
088: */
089: public Collection getRemotePrincipals() {
090: return this .remotePrincipals;
091: }
092:
093: /**
094: *
095: * @param remotePrincipals
096: */
097: public void setRemotePrincipals(Collection remotePrincipals) {
098: this.remotePrincipals = remotePrincipals;
099: }
100: }
|