|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.security.SecurityManagerImpl
public final class SecurityManagerImpl
SecurityManager to control access to different services
Field Summary |
---|
Fields inherited from interface railo.runtime.security.SecurityManager |
---|
ACCESS_CLOSE, ACCESS_OPEN, ACCESS_PROTECTED, NUMBER_OFFSET, TYPE_ACCESS_READ, TYPE_ACCESS_WRITE, TYPE_CACHE, TYPE_CFX_SETTING, TYPE_CFX_USAGE, TYPE_CUSTOM_TAG, TYPE_DATASOURCE, TYPE_DEBUGGING, TYPE_DIRECT_JAVA_ACCESS, TYPE_FILE, TYPE_GATEWAY, TYPE_MAIL, TYPE_MAPPING, TYPE_ORM, TYPE_REMOTE, TYPE_SCHEDULED_TASK, TYPE_SEARCH, TYPE_SETTING, TYPE_TAG_EXECUTE, TYPE_TAG_IMPORT, TYPE_TAG_OBJECT, TYPE_TAG_REGISTRY, VALUE_1, VALUE_10, VALUE_2, VALUE_3, VALUE_4, VALUE_5, VALUE_6, VALUE_7, VALUE_8, VALUE_9, VALUE_ALL, VALUE_LOCAL, VALUE_NO, VALUE_NONE, VALUE_YES |
Constructor Summary | |
---|---|
SecurityManagerImpl(short setting,
short file,
short directJavaAccess,
short mail,
short datasource,
short mapping,
short remote,
short customTag,
short cfxSetting,
short cfxUsage,
short debugging,
short search,
short scheduledTasks,
short tagExecute,
short tagImport,
short tagObject,
short tagRegistry,
short cache,
short gateway,
short orm,
short accessRead,
short accessWrite)
create a new Accessor |
Method Summary | |
---|---|
void |
checkFileLocation(Config config,
Resource res,
String serverPassword)
|
void |
checkFileLocation(Resource res)
|
Object |
clone()
|
SecurityManager |
cloneSecurityManager()
|
short |
getAccess(int access)
|
short |
getAccess(String access)
|
Resource[] |
getCustomFileAccess()
|
static SecurityManager |
getOpenSecurityManager()
|
void |
setAccess(int access,
short value)
|
void |
setCustomFileAccess(Resource[] fileAccess)
|
void |
setRootDirectory(Resource rootDirectory)
|
static short |
toShortAccessRWValue(String accessValue)
|
static short |
toShortAccessRWValue(String accessValue,
short defaultValue)
|
static short |
toShortAccessValue(String accessValue)
translate a string access value (all,local,none,no,yes) to int type |
static short |
toShortAccessValue(String accessValue,
short defaultValue)
translate a string access value (all,local,none,no,yes) to int type |
static String |
toStringAccessRWValue(short accessValue)
|
static String |
toStringAccessValue(short accessValue)
translate a short access value (all,local,none,no,yes) to String type |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityManagerImpl(short setting, short file, short directJavaAccess, short mail, short datasource, short mapping, short remote, short customTag, short cfxSetting, short cfxUsage, short debugging, short search, short scheduledTasks, short tagExecute, short tagImport, short tagObject, short tagRegistry, short cache, short gateway, short orm, short accessRead, short accessWrite)
setting
- file
- directJavaAccess
- mail
- datasource
- mapping
- customTag
- cfxSetting
- cfxUsage
- debugging
- search
- scheduledTasks
- tagExecute
- tagImport
- tagObject
- tagRegistry
- t
- accessRead
- Method Detail |
---|
public static SecurityManager getOpenSecurityManager()
public short getAccess(int access)
getAccess
in interface SecurityManager
public void setAccess(int access, short value)
public short getAccess(String access) throws SecurityException
getAccess
in interface SecurityManager
SecurityException
public static short toShortAccessValue(String accessValue) throws SecurityException
accessValue
-
SecurityException
public static short toShortAccessRWValue(String accessValue) throws SecurityException
SecurityException
public static short toShortAccessValue(String accessValue, short defaultValue)
accessValue
- defaultValue
- when accessValue is invlaid this value will be returned
public static short toShortAccessRWValue(String accessValue, short defaultValue)
public static String toStringAccessValue(short accessValue) throws SecurityException
accessValue
-
SecurityException
public static String toStringAccessRWValue(short accessValue) throws SecurityException
SecurityException
public void checkFileLocation(Resource res) throws SecurityException
checkFileLocation
in interface SecurityManager
SecurityException
public void checkFileLocation(Config config, Resource res, String serverPassword) throws SecurityException
checkFileLocation
in interface SecurityManager
SecurityException
public SecurityManager cloneSecurityManager()
cloneSecurityManager
in interface SecurityManager
public Object clone()
clone
in class Object
public Resource[] getCustomFileAccess()
public void setCustomFileAccess(Resource[] fileAccess)
public void setRootDirectory(Resource rootDirectory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |