本文整理了Java中java.lang.SecurityManager.checkPackageDefinition()
方法的一些代码示例,展示了SecurityManager.checkPackageDefinition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SecurityManager.checkPackageDefinition()
方法的具体详情如下:
包路径:java.lang.SecurityManager
类名称:SecurityManager
方法名:checkPackageDefinition
暂无
代码示例来源:origin: wildfly/wildfly
public void checkPackageDefinition(final String pkg) {
if (doCheck()) {
super.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: frohoff/ysoserial
@Override
public void checkPackageDefinition(String pkg) {
getSecurityManager().checkPackageDefinition(pkg);
}
代码示例来源:origin: neo4j/neo4j
@Override
public void checkPackageDefinition( String pkg )
{
if ( managerExists() )
{
securityManager.checkPackageDefinition( pkg );
}
else
{
super.checkPackageDefinition( pkg );
}
}
代码示例来源:origin: apache/ignite
/** {@inheritDoc} */
@Override protected Class<?> findClass(String name) throws ClassNotFoundException {
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
int i = name.lastIndexOf('.');
if (i >= 0)
sm.checkPackageDefinition(name.substring(0, i));
}
byte[] buf = clsArrs.get(name);
if (buf != null)
return defineClass(name, buf, 0, buf.length, (CodeSource)null);
throw new ClassNotFoundException(name);
}
代码示例来源:origin: org.fitnesse/fitnesse
@Override
public void checkPackageDefinition(String pkg) {
if (delegate != null) {
delegate.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: stefanbirkner/system-rules
@Override
public void checkPackageDefinition(String pkg) {
if (originalSecurityManager != null)
originalSecurityManager.checkPackageDefinition(pkg);
}
代码示例来源:origin: com.github.stefanbirkner/system-rules
@Override
public void checkPackageDefinition(String pkg) {
if (originalSecurityManager != null)
originalSecurityManager.checkPackageDefinition(pkg);
}
代码示例来源:origin: pentaho/big-data-plugin
@Override
public void checkPackageDefinition( String pkg ) {
if ( decorated != null ) {
decorated.checkPackageDefinition( pkg );
}
}
代码示例来源:origin: nokia/Avro-Schema-Generator
@Override
public void checkPackageDefinition(String pkg) {
if (delegate != null) {
delegate.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.ant.core
public void checkPackageDefinition(String pkg) {
if (fSecurityManager != null) {
fSecurityManager.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: com.github.tcnh/fitnesse
@Override
public void checkPackageDefinition(String pkg) {
if (delegate != null) {
delegate.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: poreid/poreid
@Override
public void checkPackageDefinition(final String pkg) {
super.checkPackageDefinition(pkg);
if (pkg != null && pkg.startsWith("por.eid")) {
throw new SecurityException("O prefixo por.eid está reservado para utilização no provider " + pkg);
}
if (null != securityManager) {
securityManager.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: rythmengine/rythmengine
@Override
public void checkPackageDefinition(String pkg) {
checkRythm();
if (null != osm) osm.checkPackageDefinition(pkg);
if (null != osm) osm.checkPackageDefinition(pkg);
}
代码示例来源:origin: org.rythmengine/rythm-engine
@Override
public void checkPackageDefinition(String pkg) {
checkRythm();
if (null != osm) osm.checkPackageDefinition(pkg);
if (null != osm) osm.checkPackageDefinition(pkg);
}
代码示例来源:origin: bonitasoft/bonita-engine
private void checkPackageDefinition(final String className) {
SecurityManager securityManager = System.getSecurityManager();
if (securityManager != null) {
String packageName;
int packageEnd = className.lastIndexOf('.');
if (packageEnd >= 0) {
packageName = className.substring(0, packageEnd);
securityManager.checkPackageDefinition(packageName);
}
}
}
}, this.acc);
代码示例来源:origin: org.wildfly.security/wildfly-elytron-security-manager
public void checkPackageDefinition(final String pkg) {
if (doCheck()) {
super.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: org.wildfly.security/wildfly-security-manager
public void checkPackageDefinition(final String pkg) {
if (doCheck()) {
super.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public void checkPackageDefinition(final String pkg) {
if (doCheck()) {
super.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
public void checkPackageDefinition(final String pkg) {
if (doCheck()) {
super.checkPackageDefinition(pkg);
}
}
代码示例来源:origin: net.sf.jstuff/jstuff-core
@Override
public void checkPackageDefinition(final String pkg) {
if (wrapped == null) {
super.checkPackageDefinition(pkg);
} else {
wrapped.checkPackageDefinition(pkg);
}
}
内容来源于网络,如有侵权,请联系作者删除!