/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 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: IDPSession.java,v 1.6 2009/05/12 22:44:45 madan_ranganath Exp $
*
* Portions Copyrighted 2013-2015 ForgeRock AS.
*/
/**
* This class represents 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.
*/
public class IDPSession {
private boolean doLogoutAll = false;
/**
* Constructor for a <code>IDPSession</code>.
*
* @param session the session object corresponding
* to the <code>IDPSession</code>
*/
sessionPartners = new ArrayList();
}
/**
* Returns the session object.
*
* @return the session object.
*/
return session;
}
/**
* Sets the session object.
*
* @param session The session object.
*/
}
/**
* 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
*/
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
*/
return pendingLogoutRequestID;
}
/**
* Sets the original logout request binding.
*
* @param originatingLogoutRequestBinding the original logout request binding.
*/
}
/**
* Returns the original logout request binding.
*
* @return The original logout request binding.
*/
return originatingLogoutRequestBinding;
}
/**
* 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
*/
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>
*/
return originatingLogoutSPEntityID;
}
/**
* Sets the logoutAll property.
*
* @param enable true or false
*/
}
/**
* Returns the logoutAll property.
*
* @return the logoutAll property.
*/
public boolean getLogoutAll() {
return doLogoutAll;
}
// Handle IDP Proxy case
/**
* Returns list of session partners.
* @return list of session partners
*/
return sessionPartners;
}
/**
* Adds a session partner.
* @param sessionPartner session partner to be added
*/
while (i.hasNext()) {
return;
}
}
}
/**
* Returns the first session partner of the list of session partners.
* @return the first session partner of the list
*/
if (i.hasNext()) {
return (SAML2SessionPartner)i.next();
}
return null;
}
/**
* Removes a session partner.
* @param sessionPartner session partner to be removed
*/
while (i.hasNext()) {
(SAML2SessionPartner)i.next();
"SAML2Session.removeSessionPartner : Removing "
+ sessionPartner);
}
i.remove();
}
}
}
// end of handling IDP Proxy case
/**
* Returns authentication context.
* @return authentication context
* @see #setAuthnContext(String)
*/
return authnContext;
}
/**
* Sets authentication context.
* @param authnContext authentication context to be set
* @see #getAuthnContext()
*/
this.authnContext = authnContext;
}
try {
}
}
}
}
} catch (SessionException se) {
}
}
/**
* Sets the IDP Meta Alias.
*
* @param metaAlias Meta Alias
*/
}
/**
* Returns the IDP Meta Alias.
*
* @return the IDP Meta Alias
*/
return metaAlias;
}
}