Class BlacklistMethodAccessValidator
- java.lang.Object
-
- io.pebbletemplates.pebble.attributes.methodaccess.BlacklistMethodAccessValidator
-
- All Implemented Interfaces:
MethodAccessValidator
public class BlacklistMethodAccessValidator extends java.lang.Object implements MethodAccessValidator
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]FORBIDDEN_METHODS
-
Constructor Summary
Constructors Constructor Description BlacklistMethodAccessValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanisAnyOfMethods(java.lang.reflect.Method member, java.lang.String... methods)booleanisMethodAccessAllowed(java.lang.Object object, java.lang.reflect.Method method)private booleanisMethodWithName(java.lang.reflect.Method member, java.lang.String method)private booleanisUnsafeMethod(java.lang.reflect.Method member)
-
-
-
Method Detail
-
isMethodAccessAllowed
public boolean isMethodAccessAllowed(java.lang.Object object, java.lang.reflect.Method method)- Specified by:
isMethodAccessAllowedin interfaceMethodAccessValidator
-
isUnsafeMethod
private boolean isUnsafeMethod(java.lang.reflect.Method member)
-
isAnyOfMethods
private boolean isAnyOfMethods(java.lang.reflect.Method member, java.lang.String... methods)
-
isMethodWithName
private boolean isMethodWithName(java.lang.reflect.Method member, java.lang.String method)
-
-