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 boolean
isAnyOfMethods(java.lang.reflect.Method member, java.lang.String... methods)
boolean
isMethodAccessAllowed(java.lang.Object object, java.lang.reflect.Method method)
private boolean
isMethodWithName(java.lang.reflect.Method member, java.lang.String method)
private boolean
isUnsafeMethod(java.lang.reflect.Method member)
-
-
-
Method Detail
-
isMethodAccessAllowed
public boolean isMethodAccessAllowed(java.lang.Object object, java.lang.reflect.Method method)
- Specified by:
isMethodAccessAllowed
in 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)
-
-