/* * Copyright (c) 2013, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.wso2.carbon.identity.application.authentication.framework.context; import org.wso2.carbon.identity.application.authentication.framework.config.model.SequenceConfig; import org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedIdPData; import java.io.Serializable; import java.util.HashMap; import java.util.Map; public class SessionContext implements Serializable { private static final long serialVersionUID = -2381634092699961017L; private Map<String, SequenceConfig> authenticatedSequences = new HashMap<>(); private Map<String, AuthenticatedIdPData> authenticatedIdPs = new HashMap<>(); private boolean isRememberMe = false; Map<String,Object> properties = new HashMap<>(); public Map<String, SequenceConfig> getAuthenticatedSequences() { return authenticatedSequences; } public void setAuthenticatedSequences( Map<String, SequenceConfig> authenticatedSequences) { this.authenticatedSequences = authenticatedSequences; } public Map<String, AuthenticatedIdPData> getAuthenticatedIdPs() { return authenticatedIdPs; } public void setAuthenticatedIdPs(Map<String, AuthenticatedIdPData> authenticatedIdPs) { this.authenticatedIdPs = authenticatedIdPs; } public boolean isRememberMe() { return isRememberMe; } public void setRememberMe(boolean isRememberMe) { this.isRememberMe = isRememberMe; } public void addProperty(String key, Object value) { properties.put(key, value); } public Object getProperty(String key) { return properties.get(key); } }