2 * Copyright [2006] [University Corporation for Advanced Internet Development, Inc.]
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package edu.internet2.middleware.shibboleth.idp.session.impl;
19 import java.net.InetAddress;
20 import java.util.List;
22 import javolution.util.FastList;
24 import edu.internet2.middleware.shibboleth.common.session.impl.AbstractSession;
25 import edu.internet2.middleware.shibboleth.idp.session.AuthenticationMethodInformation;
26 import edu.internet2.middleware.shibboleth.idp.session.ServiceInformation;
27 import edu.internet2.middleware.shibboleth.idp.session.Session;
30 * Session information for user logged into the IdP.
32 public class SessionImpl extends AbstractSession implements Session {
34 /** Serial version UID. */
35 private static final long serialVersionUID = 2927868242208211623L;
37 /** The list of methods used to authentictate the user. */
38 private List<AuthenticationMethodInformation> authnMethods;
40 /** The list of services to which the user has logged in. */
41 private List<ServiceInformation> servicesInformation;
44 * Default constructor.
46 * @param presenter IP address of the presenter
47 * @param principal principal ID of the user
49 public SessionImpl(InetAddress presenter, String principal) {
50 super(presenter, principal);
52 authnMethods = new FastList<AuthenticationMethodInformation>();
53 servicesInformation = new FastList<ServiceInformation>();
57 public List<AuthenticationMethodInformation> getAuthenticationMethods() {
62 public List<ServiceInformation> getServicesInformation() {
63 return servicesInformation;