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

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

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

SecurityManager.checkSecurityAccess介绍

暂无

代码示例

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

public void checkSecurityAccess(final String target) {
  if (doCheck()) {
    super.checkSecurityAccess(target);
  }
}

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

@Override
public void checkSecurityAccess(String target) {
  getSecurityManager().checkSecurityAccess(target);
}

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

@Override
public void checkSecurityAccess( String target )
{
  if ( managerExists() )
  {
    securityManager.checkSecurityAccess( target );
  }
  else
  {
    super.checkSecurityAccess( target );
  }
}

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

@Override
public void checkSecurityAccess(String target) {
  if (originalSecurityManager != null)
    originalSecurityManager.checkSecurityAccess(target);
}

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

@Override
public void checkSecurityAccess(String target) {
  if (originalSecurityManager != null)
    originalSecurityManager.checkSecurityAccess(target);
}

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

@Override
public void checkSecurityAccess( String target ) {
 if ( decorated != null ) {
  decorated.checkSecurityAccess( target );
 }
}

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

public void checkSecurityAccess(String target) {
  if (fSecurityManager != null) {
    fSecurityManager.checkSecurityAccess(target);
  }
}

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

@Override
  public void checkSecurityAccess(String target) {
    if (delegate != null) {
      delegate.checkSecurityAccess(target);
    }
  }
}

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

@Override
public void checkSecurityAccess(String target) {
 if (delegate != null) {
  delegate.checkSecurityAccess(target);
 }
}

代码示例来源:origin: Nextdoor/bender

@Override
public void checkSecurityAccess(String target) {
  if (originalSecurityManager != null)
    originalSecurityManager.checkSecurityAccess(target);
}

代码示例来源:origin: org.glassfish.main.web/war-util

/**
 * If there is a Java SecurityManager create a Permission.
 *
 * @param permission permission to add
 */
public void addPermission(Permission permission) {
  if ((securityManager != null) && (permission != null)) {
    securityManager.checkSecurityAccess(
          DDPermissionsLoader.SET_EE_POLICY);
    permissionList.add(permission);
  }
}

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

public void checkSecurityAccess(final String target) {
  if (doCheck()) {
    super.checkSecurityAccess(target);
  }
}

代码示例来源:origin: eclipse-ee4j/glassfish

@Override
public void addEEPermissions(PermissionCollection eePc) 
  throws SecurityException {        
  // sm on
  if (System.getSecurityManager() != null) {
    System.getSecurityManager().checkSecurityAccess(
        DDPermissionsLoader.SET_EE_POLICY);
    permissionsHolder.setEEPermissions(eePc);
  }
}

代码示例来源:origin: org.glassfish.main.common/common-util

@Override
public void addEEPermissions(PermissionCollection eePc) 
  throws SecurityException {        
  // sm on
  if (System.getSecurityManager() != null) {
    System.getSecurityManager().checkSecurityAccess(
        DDPermissionsLoader.SET_EE_POLICY);
    permissionsHolder.setEEPermissions(eePc);
  }
}

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

public void checkSecurityAccess(final String target) {
  if (doCheck()) {
    super.checkSecurityAccess(target);
  }
}

代码示例来源:origin: org.glassfish.main.common/common-util

@Override    
public void addDeclaredPermissions(PermissionCollection declaredPc 
    ) throws SecurityException {
  
  if (System.getSecurityManager() != null) {
    System.getSecurityManager().checkSecurityAccess(
        DDPermissionsLoader.SET_EE_POLICY);
  
    permissionsHolder.setDeclaredPermissions(declaredPc);
  }
  
}

代码示例来源:origin: org.glassfish.main.web/war-util

@Override
public void addDeclaredPermissions(PermissionCollection declaredPc 
    ) throws SecurityException {
  
  if (securityManager != null) {
    securityManager.checkSecurityAccess(
        DDPermissionsLoader.SET_EE_POLICY);
    permissionsHolder.setDeclaredPermissions(declaredPc);
  }
}

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

@Override
public void checkSecurityAccess(final String target) {
 if (wrapped == null) {
   super.checkSecurityAccess(target);
 } else {
   wrapped.checkSecurityAccess(target);
 }
}

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

@Override
  public void checkSecurityAccess(String target) {
    detectException("checkSecurityAccess");
    super.checkSecurityAccess(target);
  }
}

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

public void checkSecurityAccess(final String target) {
  if (doCheck()) {
    super.checkSecurityAccess(target);
  }
}

相关文章