001/**
002 *
003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
004 *
005 * This library is free software; you can redistribute it and/or
006 * modify it under the terms of the GNU Lesser General Public
007 * License as published by the Free Software Foundation; either 
008 * version 2.1 of the License, or (at your option) any later version.
009 * 
010 * This library is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 * Lesser General Public License for more details.
014 * 
015 * You should have received a copy of the GNU Lesser General Public 
016 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
017 * 
018 **/
019package coldfusion.server;
020
021import java.security.Permission;
022import java.util.HashMap;
023import java.util.Map;
024
025//import coldfusion.security.BasicPolicy;
026
027public interface SecurityService extends Service {
028
029        public abstract Map getContexts();
030
031        //public abstract BasicPolicy getBasicPolicy();
032
033        public abstract HashMap getCompiledCrossSiteScriptPatterns();
034
035        public abstract String crossSiteProtectString(String arg0);
036
037        public abstract boolean isJvmSecurityEnabled();
038
039        public abstract boolean isSandboxSecurityEnabled();
040
041        public abstract void setSandboxSecurityEnabled(boolean arg0);
042
043        public abstract void checkPermission(Permission arg0);
044
045        public abstract void setJvmSecurityEnabled(boolean arg0);
046
047        public abstract void authenticateAdmin();
048
049        public abstract void setAdminPassword(String arg0);
050
051        public abstract boolean isAdminSecurityEnabled();
052
053        public abstract void setAdminSecurityEnabled(boolean arg0);
054
055        public abstract boolean checkAdminPassword(String arg0, String arg1);
056
057        public abstract boolean checkAdminPassword(String arg0);
058
059        public abstract String getAdminHash(Object arg0);
060
061        public abstract void setRdsPassword(String arg0);
062
063        public abstract boolean checkRdsPassword(String arg0);
064
065        public abstract boolean isRdsSecurityEnabled();
066
067        public abstract void setRdsSecurityEnabled(boolean arg0);
068
069        public abstract Map getSettings();
070
071        public abstract void setSettings(Map arg0) throws ServiceException;
072
073        public abstract void registerWithWatchService();
074
075        public abstract void setEnableWatch(boolean arg0);
076
077}