public class DelegateSecurityManager extends CombinerSecurityManager
In this manner we can prevent references to security sensitive object's from escaping.
See "Inside Java 2 Platform Security" 2nd Edition, ISBN:0-201-78791-1, page 176.
Delegate implementations are available separately from the JGDMS release at Apache River.
Delegates can be enabled at runtime by using the DelegateSecurityManager, but only for code that utilises delegates.
DelegatePermission
inCheck
Constructor and Description |
---|
DelegateSecurityManager() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkPermission(ProtectionDomain pd,
Permission p)
Enables customisation of permission check.
|
checkPermission, checkPermission, clearCache, getSecurityContext
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getThreadGroup, inClass, inClassLoader
protected boolean checkPermission(ProtectionDomain pd, Permission p)
CombinerSecurityManager
checkPermission
in class CombinerSecurityManager
pd
- protection domain to be checked.p
- permission to be checked.Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.