本文整理了Java中java.lang.SecurityManager.checkDelete()
方法的一些代码示例,展示了SecurityManager.checkDelete()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SecurityManager.checkDelete()
方法的具体详情如下:
包路径:java.lang.SecurityManager
类名称:SecurityManager
方法名:checkDelete
暂无
代码示例来源:origin: wildfly/wildfly
public void checkDelete(final String file) {
if (doCheck()) {
super.checkDelete(file);
}
}
代码示例来源:origin: frohoff/ysoserial
@Override
public void checkDelete(String file) {
getSecurityManager().checkDelete(file);
}
代码示例来源:origin: neo4j/neo4j
@Override
public void checkDelete( String file )
{
if ( managerExists() )
{
securityManager.checkDelete( file );
}
else
{
super.checkDelete( file );
}
}
代码示例来源:origin: com.github.stefanbirkner/system-rules
@Override
public void checkDelete(String file) {
if (originalSecurityManager != null)
originalSecurityManager.checkDelete(file);
}
代码示例来源:origin: poreid/poreid
@Override
public void checkDelete(final String file) {
if (null != securityManager) {
securityManager.checkDelete(file);
}
}
代码示例来源:origin: stackoverflow.com
Deletes the file or directory denoted by this abstract pathname. If this pathname denotes a directory, then the directory must be empty in order to be deleted.
Returns:
true if and only if the file or directory is successfully deleted; false otherwise
Throws:
SecurityException - If a security manager exists and its SecurityManager.checkDelete(java.lang.String) method denies delete access to the file
代码示例来源:origin: stefanbirkner/system-rules
@Override
public void checkDelete(String file) {
if (originalSecurityManager != null)
originalSecurityManager.checkDelete(file);
}
代码示例来源:origin: stackoverflow.com
delete
public boolean delete()
Deletes the file or directory denoted by this abstract pathname. If this pathname
denotes a directory, then the directory must be empty in order to be deleted.
Returns:
true if and only if the file or directory is successfully deleted; false otherwise
Throws:
SecurityException - If a security manager exists and its SecurityManager.checkDelete(java.lang.String) method denies delete
代码示例来源:origin: org.fitnesse/fitnesse
@Override
public void checkDelete(String file) {
if (delegate != null) {
delegate.checkDelete(file);
}
}
代码示例来源:origin: rythmengine/rythmengine
@Override
public void checkDelete(String file) {
safeCheckFile(file, deletable);
if (null != csm) csm.checkDelete(file);
if (null != osm) osm.checkDelete(file);
}
代码示例来源:origin: org.rythmengine/rythm-engine
@Override
public void checkDelete(String file) {
safeCheckFile(file, deletable);
if (null != csm) csm.checkDelete(file);
if (null != osm) osm.checkDelete(file);
}
代码示例来源:origin: lionoggo/Akit-Reader
public static boolean deleteFileWithPath(String filePath) {
SecurityManager checker = new SecurityManager();
File f = new File(filePath);
checker.checkDelete(filePath);
if (f.isFile()) {
f.delete();
return true;
}
return false;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-bootstrap
private void notifyDelete(String file) {
SecurityManager s = getSecurityManager();
if (s != null) {
s.checkDelete(file);
}
}
代码示例来源:origin: freeplane/freeplane
@Override
public void checkDelete(final String pFile) {
try{
super.checkDelete(pFile);
}
catch(AccessControlException e){
throw getException(e, InternationalizedSecurityManager.PERM_GROUP_FILE, InternationalizedSecurityManager.PERM_Delete);
}
}
代码示例来源:origin: lionoggo/FastApp
public static boolean deleteFileWithPath(String filePath) {
SecurityManager checker = new SecurityManager();
File f = new File(filePath);
checker.checkDelete(filePath);
if (f.isFile()) {
f.delete();
return true;
}
return false;
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
public void checkDelete(final String file) {
if (doCheck()) {
super.checkDelete(file);
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public void checkDelete(final String file) {
if (doCheck()) {
super.checkDelete(file);
}
}
代码示例来源:origin: net.sf.jstuff/jstuff-core
@Override
public void checkDelete(final String file) {
if (wrapped == null) {
super.checkDelete(file);
} else {
wrapped.checkDelete(file);
}
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-security-manager
public void checkDelete(final String file) {
if (doCheck()) {
super.checkDelete(file);
}
}
代码示例来源:origin: org.wildfly.security/wildfly-security-manager
public void checkDelete(final String file) {
if (doCheck()) {
super.checkDelete(file);
}
}
内容来源于网络,如有侵权,请联系作者删除!