001    //$HeadURL: svn+ssh://jwilden@svn.wald.intevation.org/deegree/base/branches/2.5_testing/src/org/deegree/security/owsproxy/SecurityConfig.java $
002    /*----------------------------------------------------------------------------
003     This file is part of deegree, http://deegree.org/
004     Copyright (C) 2001-2009 by:
005       Department of Geography, University of Bonn
006     and
007       lat/lon GmbH
008    
009     This library is free software; you can redistribute it and/or modify it under
010     the terms of the GNU Lesser General Public License as published by the Free
011     Software Foundation; either version 2.1 of the License, or (at your option)
012     any later version.
013     This library is distributed in the hope that it will be useful, but WITHOUT
014     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
015     FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
016     details.
017     You should have received a copy of the GNU Lesser General Public License
018     along with this library; if not, write to the Free Software Foundation, Inc.,
019     59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020    
021     Contact information:
022    
023     lat/lon GmbH
024     Aennchenstr. 19, 53177 Bonn
025     Germany
026     http://lat-lon.de/
027    
028     Department of Geography, University of Bonn
029     Prof. Dr. Klaus Greve
030     Postfach 1147, 53001 Bonn
031     Germany
032     http://www.geographie.uni-bonn.de/deegree/
033    
034     e-mail: info@deegree.org
035    ----------------------------------------------------------------------------*/
036    package org.deegree.security.owsproxy;
037    
038    /**
039     *
040     * @author <a href="mailto:poth@lat-lon.de">Andreas Poth </a>
041     * @author last edited by: $Author: mschneider $
042     *
043     * @version $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
044     */
045    public class SecurityConfig {
046    
047        private int readWriteTimeout = 0;
048    
049        private String registryClass = null;
050    
051        private RegistryConfig registryConfig = null;
052    
053        private AuthentificationSettings authsettings = null;
054    
055        private String proxiedUrl;
056    
057        /**
058         * @param readWriteTimeout
059         * @param registryClass
060         * @param registryConfig
061         * @param authSet
062         */
063        public SecurityConfig( String registryClass, int readWriteTimeout, RegistryConfig registryConfig,
064                               AuthentificationSettings authSet ) {
065            this.readWriteTimeout = readWriteTimeout;
066            this.registryClass = registryClass;
067            this.registryConfig = registryConfig;
068            this.authsettings = authSet;
069        }
070    
071        /**
072         *
073         * @return readWriteTimeout
074         */
075        public int getReadWriteTimeout() {
076            return readWriteTimeout;
077        }
078    
079        /**
080         * @param readWriteTimeout
081         *
082         */
083        public void setReadWriteTimeout( int readWriteTimeout ) {
084            this.readWriteTimeout = readWriteTimeout;
085        }
086    
087        /**
088         *
089         * @return registryClass
090         */
091        public String getRegistryClass() {
092            return registryClass;
093        }
094    
095        /**
096         * @param registryClass
097         *
098         */
099        public void setRegistryClass( String registryClass ) {
100            this.registryClass = registryClass;
101        }
102    
103        /**
104         *
105         * @return registryConfig
106         */
107        public RegistryConfig getRegistryConfig() {
108            return registryConfig;
109        }
110    
111        /**
112         * @param registryConfig
113         *
114         */
115        public void setRegistryConfig( RegistryConfig registryConfig ) {
116            this.registryConfig = registryConfig;
117        }
118    
119        /**
120         *
121         * @return authsettings
122         */
123        public AuthentificationSettings getAuthsettings() {
124            return authsettings;
125        }
126    
127        /**
128         *
129         * @param authsettings
130         */
131        public void setAuthsettings( AuthentificationSettings authsettings ) {
132            this.authsettings = authsettings;
133        }
134    
135        /**
136         * @param proxiedUrl
137         */
138        public void setProxiedUrl( String proxiedUrl ) {
139            this.proxiedUrl = proxiedUrl;
140        }
141    
142        /**
143         * @return the URL of the secured service, or null, if not set
144         */
145        public String getProxiedUrl() {
146            return proxiedUrl;
147        }
148    
149    }