Package com.cedarsoftware.util
Class ClassUtilities.SecurityChecker
java.lang.Object
com.cedarsoftware.util.ClassUtilities.SecurityChecker
- Enclosing class:
- ClassUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isSecurityBlocked
(Class<?> clazz) Checks if a class is blocked for security reasons.static boolean
isSecurityBlockedName
(String className) Checks if a class name is directly in the blocked list.static void
verifyClass
(Class<?> clazz) Throws an exception if the class is blocked for security reasons.
-
Constructor Details
-
SecurityChecker
public SecurityChecker()
-
-
Method Details
-
isSecurityBlocked
Checks if a class is blocked for security reasons.- Parameters:
clazz
- The class to check- Returns:
- true if the class is blocked, false otherwise
-
isSecurityBlockedName
Checks if a class name is directly in the blocked list. Used before class loading.- Parameters:
className
- The class name to check- Returns:
- true if the class name is blocked, false otherwise
-
verifyClass
Throws an exception if the class is blocked for security reasons.- Parameters:
clazz
- The class to verify- Throws:
SecurityException
- if the class is blocked
-