/******************************************************************************* * Copyright 2014 Federal Chancellery Austria * MOA-ID has been developed in a cooperation between BRZ, the Federal * Chancellery Austria - ICT staff unit, and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the European Commission - subsequent versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Licence at: * http://www.osor.eu/eupl/ * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licence for the specific language governing permissions and * limitations under the Licence. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. ******************************************************************************/ /* * Copyright 2003 Federal Chancellery Austria * MOA-ID has been developed in a cooperation between BRZ, the Federal * Chancellery Austria - ICT staff unit, and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the European Commission - subsequent versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Licence at: * http://www.osor.eu/eupl/ * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licence for the specific language governing permissions and * limitations under the Licence. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. */ package at.gv.egovernment.moa.id.config.proxy; import at.gv.egovernment.moa.id.config.legacy.ConnectionParameter; import at.gv.egovernment.moa.id.config.legacy.OAParameter; /** * Configuration parameters belonging to an online application, * to use with the MOA ID Proxy component. * * @author Stefan Knirsch * @version $Id$ */ public class OAProxyParameter extends OAParameter { // /** // * public URL prefix of the online application // */ // private String publicURLPrefix; /** * URL of online application configuration file; * defaults to relative URL /moaconfig.xml */ private String configFileURL; /** * implementation of {@link at.gv.egovernment.moa.id.proxy.LoginParameterResolver} interface * to be used for authenticating the online application; * defaults to {@link at.gv.egovernment.moa.id.proxy.DefaultLoginParameterResolver} */ private String loginParameterResolverImpl; /** * Configuration Parameter of LoginParameterResolver */ private String loginParameterResolverConfiguration; /** * implementation of {@link at.gv.egovernment.moa.id.proxy.ConnectionBuilder} interface * to be used for connecting to the online application; * defaults to {@link at.gv.egovernment.moa.id.proxy.DefaultConnectionBuilder} */ private String connectionBuilderImpl; /** * session time out to be used in case of a stateless online application */ private int sessionTimeOut; /** * parameters regarding the connection from the proxy to the online application */ private ConnectionParameter connectionParameter; /** * parameters for logging into the online application */ private OAConfiguration oaConfiguration; private String errorRedirctURL; /** * Returns the configFileURL. * @return String */ public String getConfigFileURL() { return configFileURL; } /** * Returns the sessionTimeOut. * @return int */ public int getSessionTimeOut() { return sessionTimeOut; } /** * Returns the connectionParameter. * @return ConnectionParameter */ public ConnectionParameter getConnectionParameter() { return connectionParameter; } /** * Sets the configFileURL for the proxy. * @param oaProxyConfigFileURL The configFileURL to set */ public void setConfigFileURL(String oaProxyConfigFileURL) { this.configFileURL = oaProxyConfigFileURL; } /** * Sets the sessionTimeOut for the proxy. * @param oaProxySessionTimeOut The sessionTimeOut to set */ public void setSessionTimeOut(int oaProxySessionTimeOut) { this.sessionTimeOut = oaProxySessionTimeOut; } /** * Sets the connectionParameter for the proxy. * @param proxyConnectionParameter The connectionParameter to set */ public void setConnectionParameter(ConnectionParameter proxyConnectionParameter) { this.connectionParameter = proxyConnectionParameter; } // /** // * Returns the publicURLPrefix. // * @return String // */ // public String getPublicURLPrefix() { // return publicURLPrefix; // } // // /** // * Sets the publicURLPrefix. // * @param publicURLPrefix The publicURLPrefix to set // */ // public void setPublicURLPrefix(String url) { // this.publicURLPrefix = url; // } /** * Returns the connectionBuilderImpl. * @return String */ public String getConnectionBuilderImpl() { return connectionBuilderImpl; } /** * Returns the loginParameterResolverImpl. * @return String */ public String getLoginParameterResolverImpl() { return loginParameterResolverImpl; } /** * Returns the loginParameterResolverConfiguration. * @return String */ public String getLoginParameterResolverConfiguration() { return loginParameterResolverConfiguration; } /** * Sets the connectionBuilderImpl for the proxy. * @param connectionBuilderImpl The connectionBuilderImpl to set */ public void setConnectionBuilderImpl(String connectionBuilderImpl) { this.connectionBuilderImpl = connectionBuilderImpl; } /** * Sets the loginParameterResolverImpl for the proxy. * @param loginParameterResolverImpl The loginParameterResolverImpl to set */ public void setLoginParameterResolverImpl(String loginParameterResolverImpl) { this.loginParameterResolverImpl = loginParameterResolverImpl; } /** * Sets the loginParameterResolverConfiguration for the proxy. * @param loginParameterResolverConfiguration The loginParameterResolverImpl to set */ public void setLoginParameterResolverConfiguration(String loginParameterResolverConfiguration) { this.loginParameterResolverConfiguration = loginParameterResolverConfiguration; } /** * Returns the oaConfiguration. * @return OAConfiguration */ public OAConfiguration getOaConfiguration() { return oaConfiguration; } /** * Sets the oaConfiguration. * @param oaConfiguration The oaConfiguration to set */ public void setOaConfiguration(OAConfiguration oaConfiguration) { this.oaConfiguration = oaConfiguration; } /** * @return the errorRedirctURL */ public String getErrorRedirctURL() { return errorRedirctURL; } /** * @param errorRedirctURL the errorRedirctURL to set */ public void setErrorRedirctURL(String errorRedirctURL) { this.errorRedirctURL = errorRedirctURL; } }