Class ClassUtilities.SecurityChecker

java.lang.Object
com.cedarsoftware.util.ClassUtilities.SecurityChecker
Enclosing class:
ClassUtilities

public static class ClassUtilities.SecurityChecker extends Object
  • Constructor Details

    • SecurityChecker

      public SecurityChecker()
  • Method Details

    • isSecurityBlocked

      public static boolean isSecurityBlocked(Class<?> clazz)
      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

      public static boolean isSecurityBlockedName(String className)
      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

      public static void verifyClass(Class<?> clazz)
      Throws an exception if the class is blocked for security reasons.
      Parameters:
      clazz - The class to verify
      Throws:
      SecurityException - if the class is blocked