本文整理了Java中java.lang.SecurityManager.checkPropertiesAccess()
方法的一些代码示例,展示了SecurityManager.checkPropertiesAccess()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SecurityManager.checkPropertiesAccess()
方法的具体详情如下:
包路径:java.lang.SecurityManager
类名称:SecurityManager
方法名:checkPropertiesAccess
暂无
代码示例来源:origin: wildfly/wildfly
public void checkPropertiesAccess() {
if (doCheck()) {
super.checkPropertiesAccess();
}
}
代码示例来源:origin: frohoff/ysoserial
@Override
public void checkPropertiesAccess() {
getSecurityManager().checkPropertiesAccess();
}
代码示例来源:origin: neo4j/neo4j
@Override
public void checkPropertiesAccess()
{
if ( managerExists() )
{
securityManager.checkPropertiesAccess();
}
else
{
super.checkPropertiesAccess();
}
}
代码示例来源:origin: stackoverflow.com
// From java.lang.System
* The argument becomes the current set of system properties for use
* by the {@link #getProperty(String)} method.
public static void setProperties(Properties props) {
SecurityManager sm = getSecurityManager();
if (sm != null) {
sm.checkPropertiesAccess();
}
if (props == null) {
props = new Properties();
initProperties(props);
}
System.props = props;
}
代码示例来源:origin: stefanbirkner/system-rules
@Override
public void checkPropertiesAccess() {
if (originalSecurityManager != null)
originalSecurityManager.checkPropertiesAccess();
}
代码示例来源:origin: Nextdoor/bender
@Override
public void checkPropertiesAccess() {
if (originalSecurityManager != null)
originalSecurityManager.checkPropertiesAccess();
}
代码示例来源:origin: poreid/poreid
@Override
public void checkPropertiesAccess() {
if (null != securityManager) {
securityManager.checkPropertiesAccess();
}
}
代码示例来源:origin: com.github.stefanbirkner/system-rules
@Override
public void checkPropertiesAccess() {
if (originalSecurityManager != null)
originalSecurityManager.checkPropertiesAccess();
}
代码示例来源:origin: com.github.tcnh/fitnesse
@Override
public void checkPropertiesAccess() {
if (delegate != null) {
delegate.checkPropertiesAccess();
}
}
代码示例来源:origin: org.jboss/jboss-common-core
/**
* Get the default <tt>PropertyMap</tt>.
*
* @return Default <tt>PropertyMap</tt>.
*/
public static PropertyMap getDefaultPropertyMap()
{
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPropertiesAccess();
return props;
}
代码示例来源:origin: org.rythmengine/rythm-engine
@Override
public void checkPropertiesAccess() {
checkRythm();
if (null != csm) csm.checkPropertiesAccess();
if (null != osm) osm.checkPropertiesAccess();
}
代码示例来源:origin: org.msgpack/msgpack
/**
* Sets the search packages.
*
* @param path the new search packages to be set.
*/
public static void setBeanInfoSearchPath(String[] path) {
if (System.getSecurityManager() != null) {
System.getSecurityManager().checkPropertiesAccess();
}
searchPath = path;
}
代码示例来源:origin: rythmengine/rythmengine
@Override
public void checkPropertiesAccess() {
checkRythm();
if (null != csm) csm.checkPropertiesAccess();
if (null != osm) osm.checkPropertiesAccess();
}
代码示例来源:origin: org.jboss/jboss-common-core
/**
* Return an iterator over all contained property names.
*
* @return Property name iterator.
*/
public static Iterator names()
{
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPropertiesAccess();
return props.names();
}
代码示例来源:origin: org.jboss/jboss-common-core
/**
* Add an array of property listeners.
*
* @param listeners Array of property listeners to add.
*/
public static void addPropertyListeners(final PropertyListener[] listeners)
{
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPropertiesAccess();
props.addPropertyListeners(listeners);
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron
public void checkPropertiesAccess() {
if (doCheck()) {
super.checkPropertiesAccess();
}
}
代码示例来源:origin: org.eclipse/org.eclipse.osgi
public static Properties getProperties() {
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPropertiesAccess();
return internalGetProperties(null);
}
代码示例来源:origin: org.wildfly.security/wildfly-elytron-security-manager
public void checkPropertiesAccess() {
if (doCheck()) {
super.checkPropertiesAccess();
}
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi
public static Properties getProperties() {
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPropertiesAccess();
return internalGetProperties(null);
}
代码示例来源:origin: org.jboss/jboss-common-core
/**
* Add a property listener.
*
* @param listener Property listener to add.
*/
public static void addPropertyListener(final PropertyListener listener)
{
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPropertiesAccess();
props.addPropertyListener(listener);
}
内容来源于网络,如有侵权,请联系作者删除!