IDPSessionCopy.java revision 71ef1e179613c2e17b9ad5f1c9db6bf533941f9d
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: IDPSessionCopy.java,v 1.3 2009/05/06 19:48:34 madan_ranganath Exp $
*
*/
/**
* Portions copyright 2013 ForgeRock, Inc.
*/
/**
* This class represents a copy of a session in the identity provider side.
* It keeps track of information that is needed for single sign on
* as well as single log out.
* The difference between IDPSession and IDPSessionCopy is IDPSessionCopy
* only keeps SSOToken id so that it can be Serializable.
*/
public class IDPSessionCopy implements Serializable {
private boolean doLogoutAll = false;
/**
* Constructor for a <code>IDPSessionCopy</code>
*
* @param ssoToken the <code>SSO Token</code> corresponding
* to the <code>IDPSessionCopy</code>
*/
this.ssoTokenID = ssoToken;
nameIDandSPpairs = new ArrayList();
}
try {
} catch (SessionException se) {
}
nameIDandSPpairs = new ArrayList();
}
/**
* Returns the <code>SSO Token</code> of the session
*
* @return the <code>SSO Token</code> of the session
*/
public String getSSOToken() {
return ssoTokenID;
}
/**
* Returns the list of <code>NameID</code> and
* <code>SPEntityID</code> pair of the session
*
* @return the list of <code>NameID</code> and
* <code>SPEntityID</code> pair of the session
*/
public List getNameIDandSPpairs() {
return nameIDandSPpairs;
}
/**
* Sets the pending log out request id of the session
*
* @param id the request id
*/
}
/**
* Returns the pending log out request id of the session
*
* @return id the pending log out request id
*/
public String getPendingLogoutRequestID() {
return pendingLogoutRequestID;
}
/**
* Sets the original log out request id of the session
*
* @param id the request id
*/
}
/**
* Returns the original log out request id of the session
*
* @return the original log out request id
*/
public String getOriginatingLogoutRequestID() {
return originatingLogoutRequestID;
}
/**
* Sets the original log out <code>SPEntityID</code> of the session
*
* @param id the <code>SPEntityID</code>
*/
}
/**
* Returns the original log out <code>SPEntityID</code> of the session
*
* @return the original log out <code>SPEntityID</code>
*/
public String getOriginatingLogoutSPEntityID() {
return originatingLogoutSPEntityID;
}
/**
* Sets the logoutAll property
*
* @param enable true or false
*/
public void setLogoutAll(boolean enable) {
}
/**
* Returnss the logoutAll property
*/
public boolean getLogoutAll() {
return doLogoutAll;
}
/**
* Sets the IDP Meta Alias.
*
* @param metaAlias Meta Alias
*/
}
/**
* Returns the IDP Meta Alias.
*
* @return the IDP Meta Alias
*/
public String getMetaAlias() {
return metaAlias;
}
}