test_class.declarator: expectedException = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException expectedException = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: expectedException
test_class.declarator: RESTRICTED = System.getSecurityManager() != null && ! Policy.getPolicy().implies(SecurityActionsTest.class.getProtectionDomain(), new AllPermission())
test_class.modifier: private static final
test_class.original_string: private static final boolean RESTRICTED = System.getSecurityManager() != null && ! Policy.getPolicy().implies(SecurityActionsTest.class.getProtectionDomain(), new AllPermission());
test_class.type: boolean
test_class.var_name: RESTRICTED
test_class.file: saml-core/src/test/java/org/keycloak/saml/common/util/SecurityActionsTest.java
test_class.identifier: SecurityActionsTest
test_case.body: @Test
      public void testSetTCCL() {
          if (RESTRICTED) {
              expectedException.expect(AccessControlException.class);
          }
          SecurityActions.setTCCL(ClassLoader.getSystemClassLoader());
      }
test_case.class_method_signature: SecurityActionsTest.testSetTCCL()
test_case.full_signature: @Test public void testSetTCCL()
test_case.identifier: testSetTCCL
test_case.invocations: expect setTCCL getSystemClassLoader
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetTCCL()
focal_class.file: saml-core/src/main/java/org/keycloak/saml/common/util/SecurityActions.java
focal_class.identifier: SecurityActions
focal_class.class_method_signature: SecurityActions.extractPackageNameFromClassName(final String fullyQualifiedName)
focal_class.full_signature: private static String extractPackageNameFromClassName(final String fullyQualifiedName)
focal_class.identifier: extractPackageNameFromClassName
focal_class.modifiers: private static
focal_class.parameters: (final String fullyQualifiedName)
focal_class.return: String
focal_class.signature: String extractPackageNameFromClassName(final String fullyQualifiedName)
focal_class.class_method_signature: SecurityActions.loadClass(final Class<?> theClass, final String fullQualifiedName)
focal_class.full_signature: public static Class<?> loadClass(final Class<?> theClass, final String fullQualifiedName)
focal_class.identifier: loadClass
focal_class.modifiers: public static
focal_class.parameters: (final Class<?> theClass, final String fullQualifiedName)
focal_class.return: Class<?>
focal_class.signature: Class<?> loadClass(final Class<?> theClass, final String fullQualifiedName)
focal_class.class_method_signature: SecurityActions.loadClass(final ClassLoader classLoader, final String fullQualifiedName)
focal_class.full_signature: public static Class<?> loadClass(final ClassLoader classLoader, final String fullQualifiedName)
focal_class.identifier: loadClass
focal_class.modifiers: public static
focal_class.parameters: (final ClassLoader classLoader, final String fullQualifiedName)
focal_class.return: Class<?>
focal_class.signature: Class<?> loadClass(final ClassLoader classLoader, final String fullQualifiedName)
focal_class.class_method_signature: SecurityActions.loadResource(final Class<?> clazz, final String resourceName)
focal_class.full_signature: public static URL loadResource(final Class<?> clazz, final String resourceName)
focal_class.identifier: loadResource
focal_class.modifiers: public static
focal_class.parameters: (final Class<?> clazz, final String resourceName)
focal_class.return: URL
focal_class.signature: URL loadResource(final Class<?> clazz, final String resourceName)
focal_class.class_method_signature: SecurityActions.setSystemProperty(final String key, final String value)
focal_class.full_signature: public static void setSystemProperty(final String key, final String value)
focal_class.identifier: setSystemProperty
focal_class.modifiers: public static
focal_class.parameters: (final String key, final String value)
focal_class.return: void
focal_class.signature: void setSystemProperty(final String key, final String value)
focal_class.class_method_signature: SecurityActions.getSystemProperty(final String key, final String defaultValue)
focal_class.full_signature: public static String getSystemProperty(final String key, final String defaultValue)
focal_class.identifier: getSystemProperty
focal_class.modifiers: public static
focal_class.parameters: (final String key, final String defaultValue)
focal_class.return: String
focal_class.signature: String getSystemProperty(final String key, final String defaultValue)
focal_class.class_method_signature: SecurityActions.getTCCL()
focal_class.full_signature: public static ClassLoader getTCCL()
focal_class.identifier: getTCCL
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ClassLoader
focal_class.signature: ClassLoader getTCCL()
focal_class.class_method_signature: SecurityActions.setTCCL(final ClassLoader paramCl)
focal_class.full_signature: public static void setTCCL(final ClassLoader paramCl)
focal_class.identifier: setTCCL
focal_class.modifiers: public static
focal_class.parameters: (final ClassLoader paramCl)
focal_class.return: void
focal_class.signature: void setTCCL(final ClassLoader paramCl)
focal_method.body: public static void setTCCL(final ClassLoader paramCl) {
          if (System.getSecurityManager() != null) {
              System.getSecurityManager().checkPermission(new RuntimePermission("setContextClassLoader"));
              AccessController.doPrivileged(new PrivilegedAction<Void>() {
                  @Override
                  public Void run() {
                      Thread.currentThread().setContextClassLoader(paramCl);
                      return null;
                  }
              });
          } else {
  
              Thread.currentThread().setContextClassLoader(paramCl);
          }
      }
focal_method.class_method_signature: SecurityActions.setTCCL(final ClassLoader paramCl)
focal_method.full_signature: public static void setTCCL(final ClassLoader paramCl)
focal_method.identifier: setTCCL
focal_method.invocations: getSecurityManager checkPermission getSecurityManager doPrivileged setContextClassLoader currentThread setContextClassLoader currentThread
focal_method.modifiers: public static
focal_method.parameters: (final ClassLoader paramCl)
focal_method.return: void
focal_method.signature: void setTCCL(final ClassLoader paramCl)