java.lang.SecurityManager.checkCreateClassLoader()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(147)

本文整理了Java中java.lang.SecurityManager.checkCreateClassLoader()方法的一些代码示例,展示了SecurityManager.checkCreateClassLoader()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SecurityManager.checkCreateClassLoader()方法的具体详情如下:
包路径:java.lang.SecurityManager
类名称:SecurityManager
方法名:checkCreateClassLoader

SecurityManager.checkCreateClassLoader介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

public void checkCreateClassLoader() {
  if (doCheck()) {
    super.checkCreateClassLoader();
  }
}

代码示例来源:origin: frohoff/ysoserial

@Override
public void checkCreateClassLoader() {
  getSecurityManager().checkCreateClassLoader();
}

代码示例来源:origin: org.codehaus.groovy/groovy

private static void checkAccessPermission(Class<?> declaringClass, final int modifiers, boolean isAccessible) {
  final SecurityManager securityManager = System.getSecurityManager();
  if (securityManager != null && isAccessible) {
    if (((modifiers & Modifier.PRIVATE) != 0
        || ((modifiers & (Modifier.PUBLIC | Modifier.PROTECTED)) == 0
        && packageCanNotBeAddedAnotherClass(declaringClass)))
        && !GroovyObject.class.isAssignableFrom(declaringClass)) {
      securityManager.checkPermission(REFLECT_PERMISSION);
    } else if ((modifiers & (Modifier.PROTECTED)) != 0 && declaringClass.equals(ClassLoader.class)) {
      securityManager.checkCreateClassLoader();
    }
  }
}

代码示例来源:origin: neo4j/neo4j

@Override
public void checkCreateClassLoader()
{
  if ( managerExists() )
  {
    securityManager.checkCreateClassLoader();
  }
  else
  {
    super.checkCreateClassLoader();
  }
}

代码示例来源:origin: com.github.stefanbirkner/system-rules

@Override
public void checkCreateClassLoader() {
  if (originalSecurityManager != null)
    originalSecurityManager.checkCreateClassLoader();
}

代码示例来源:origin: stefanbirkner/system-rules

@Override
public void checkCreateClassLoader() {
  if (originalSecurityManager != null)
    originalSecurityManager.checkCreateClassLoader();
}

代码示例来源:origin: org.fitnesse/fitnesse

@Override
public void checkCreateClassLoader() {
 if (delegate != null) {
  delegate.checkCreateClassLoader();
 }
}

代码示例来源:origin: org.eclipse/org.eclipse.ant.core

public void checkCreateClassLoader() {
  if (fSecurityManager != null) {
    fSecurityManager.checkCreateClassLoader();
  }
}

代码示例来源:origin: pentaho/big-data-plugin

@Override
public void checkCreateClassLoader() {
 if ( decorated != null ) {
  decorated.checkCreateClassLoader();
 }
}

代码示例来源:origin: poreid/poreid

@Override
public void checkCreateClassLoader() {
  if (null != securityManager) {
    securityManager.checkCreateClassLoader();
  }
}

代码示例来源:origin: nokia/Avro-Schema-Generator

@Override
public void checkCreateClassLoader() {
  if (delegate != null) {
    delegate.checkCreateClassLoader();
  }
}

代码示例来源:origin: com.github.tcnh/fitnesse

@Override
public void checkCreateClassLoader() {
 if (delegate != null) {
  delegate.checkCreateClassLoader();
 }
}

代码示例来源:origin: org.jboss.cl/com.springsource.org.jboss.classloader

/**
* The excluded classes 
* 
* @return the excluded classes
*/
public static Set<Class<?>> getExcluded()
{
 SecurityManager sm = System.getSecurityManager();
 if (sm != null)
   sm.checkCreateClassLoader();
 return excluded;
}

代码示例来源:origin: org.jboss.cl/jboss-classloader

/**
* The excluded classes 
* 
* @return the excluded classes
*/
public static Set<Class<?>> getExcluded()
{
 SecurityManager sm = System.getSecurityManager();
 if (sm != null)
   sm.checkCreateClassLoader();
 return excluded;
}

代码示例来源:origin: org.jboss.cl/com.springsource.org.jboss.classloader

/**
* Create a new BaseClassLoaderPolicy.
* 
* @throws SecurityException if the caller does not have permission to create a classloader
*/
public BaseClassLoaderPolicy()
{
 SecurityManager sm = System.getSecurityManager();
 if (sm != null)
   sm.checkCreateClassLoader();
 
 access = AccessController.getContext();
}

代码示例来源:origin: org.jboss.cl/jboss-classloader

/**
* Create a new BaseClassLoaderPolicy.
* 
* @throws SecurityException if the caller does not have permission to create a classloader
*/
public BaseClassLoaderPolicy()
{
 SecurityManager sm = System.getSecurityManager();
 if (sm != null)
   sm.checkCreateClassLoader();
 
 access = AccessController.getContext();
}

代码示例来源:origin: org.wildfly.security/wildfly-elytron

public void checkCreateClassLoader() {
  if (doCheck()) {
    super.checkCreateClassLoader();
  }
}

代码示例来源:origin: net.sf.jstuff/jstuff-core

@Override
public void checkCreateClassLoader() {
 if (wrapped == null) {
   super.checkCreateClassLoader();
 } else {
   wrapped.checkCreateClassLoader();
 }
}

代码示例来源:origin: org.wildfly.security/wildfly-security-manager

public void checkCreateClassLoader() {
  if (doCheck()) {
    super.checkCreateClassLoader();
  }
}

代码示例来源:origin: ikkisoft/blazer

@Override
public void checkCreateClassLoader() {
  detectException("checkCreateClassLoader");
  super.checkCreateClassLoader();
}

相关文章