|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalio.PalioSecurity
public class PalioSecurity
Method Summary | |
---|---|
static java.util.List<java.lang.String> |
canExecuteJavaByteCode(java.io.File javaBytecode,
InstanceType instanceType)
This method checks if compiled java bytecode does not contain references to restricted classes. |
static boolean |
canReferenceToClass(java.lang.String name,
InstanceType instanceType)
This method is called by: - groovy engine during compilation, - java blocks after compilation ( canExecuteJavaCode ). |
static void |
checkAccess(InstanceType required)
This method should be called from each API (package palio.api) method. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void checkAccess(InstanceType required)
required
- access
java.lang.SecurityException
- if no access grantedpublic static boolean canReferenceToClass(java.lang.String name, InstanceType instanceType)
canExecuteJavaCode
).
public static java.util.List<java.lang.String> canExecuteJavaByteCode(java.io.File javaBytecode, InstanceType instanceType) throws java.io.IOException
canReferenceToClass
for every seen reference.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |