本文整理了Java中com.thoughtworks.xstream.XStream.denyPermission()
方法的一些代码示例,展示了XStream.denyPermission()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XStream.denyPermission()
方法的具体详情如下:
包路径:com.thoughtworks.xstream.XStream
类名称:XStream
方法名:denyPermission
[英]Add security permission denying another one.
[中]添加拒绝另一个的安全权限。
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Add security permission forbidding types matching one of the specified regular expressions.
*
* @param regexps the regular expressions to forbid type names
* @since 1.4.7
*/
public void denyTypesByRegExp(Pattern[] regexps) {
denyPermission(new RegExpTypePermission(regexps));
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Add security permission forbidding explicit types.
*
* @param types the types to forbid
* @since 1.4.7
*/
public void denyTypes(Class[] types) {
denyPermission(new ExplicitTypePermission(types));
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Add security permission forbidding types matching one of the specified regular expressions.
*
* @param regexps the regular expressions to forbid type names
* @since 1.4.7
*/
public void denyTypesByRegExp(String[] regexps) {
denyPermission(new RegExpTypePermission(regexps));
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Add security permission forbidding explicit types by name.
*
* @param names the type names to forbid
* @since 1.4.7
*/
public void denyTypes(String[] names) {
denyPermission(new ExplicitTypePermission(names));
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Add security permission forbidding a type hierarchy.
*
* @param type the base type to forbid
* @since 1.4.7
*/
public void denyTypeHierarchy(Class type) {
denyPermission(new TypeHierarchyPermission(type));
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* Add security permission forbidding types matching one of the specified wildcard patterns.
* <p>
* Supported are patterns with path expressions using dot as separator:
* </p>
* <ul>
* <li>?: one non-control character except separator, e.g. for 'java.net.Inet?Address'</li>
* <li>*: arbitrary number of non-control characters except separator, e.g. for types in a package like 'java.lang.*'</li>
* <li>**: arbitrary number of non-control characters including separator, e.g. for types in a package and subpackages like 'java.lang.**'</li>
* </ul>
*
* @param patterns the patterns to forbid names
* @since 1.4.7
*/
public void denyTypesByWildcard(String[] patterns) {
denyPermission(new WildcardTypePermission(patterns));
}
代码示例来源:origin: x-stream/xstream
/**
* Add security permission forbidding explicit types.
*
* @param types the types to forbid
* @since 1.4.7
*/
public void denyTypes(final Class<?>... types) {
denyPermission(new ExplicitTypePermission(types));
}
代码示例来源:origin: x-stream/xstream
/**
* Add security permission forbidding explicit types by name.
*
* @param names the type names to forbid
* @since 1.4.7
*/
public void denyTypes(final String... names) {
denyPermission(new ExplicitTypePermission(names));
}
代码示例来源:origin: x-stream/xstream
/**
* Add security permission forbidding a type hierarchy.
*
* @param type the base type to forbid
* @since 1.4.7
*/
public void denyTypeHierarchy(final Class<?> type) {
denyPermission(new TypeHierarchyPermission(type));
}
代码示例来源:origin: x-stream/xstream
/**
* Add security permission forbidding types matching one of the specified regular expressions.
*
* @param regexps the regular expressions to forbid type names
* @since 1.4.7
*/
public void denyTypesByRegExp(final String... regexps) {
denyPermission(new RegExpTypePermission(regexps));
}
代码示例来源:origin: x-stream/xstream
/**
* Add security permission forbidding types matching one of the specified regular expressions.
*
* @param regexps the regular expressions to forbid type names
* @since 1.4.7
*/
public void denyTypesByRegExp(final Pattern... regexps) {
denyPermission(new RegExpTypePermission(regexps));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
/**
* Add security permission forbidding explicit types by name.
*
* @param names the type names to forbid
* @since 1.4.7
*/
public void denyTypes(String[] names) {
denyPermission(new ExplicitTypePermission(names));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
/**
* Add security permission forbidding types matching one of the specified regular expressions.
*
* @param regexps the regular expressions to forbid type names
* @since 1.4.7
*/
public void denyTypesByRegExp(String[] regexps) {
denyPermission(new RegExpTypePermission(regexps));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
/**
* Add security permission forbidding a type hierarchy.
*
* @param type the base type to forbid
* @since 1.4.7
*/
public void denyTypeHierarchy(Class type) {
denyPermission(new TypeHierarchyPermission(type));
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Add security permission forbidding a type hierarchy.
*
* @param type the base type to forbid
* @since 1.4.7
*/
public void denyTypeHierarchy(Class type) {
denyPermission(new TypeHierarchyPermission(type));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8
/**
* Add security permission forbidding explicit types by name.
*
* @param names the type names to forbid
* @since 1.4.7
*/
public void denyTypes(String[] names) {
denyPermission(new ExplicitTypePermission(names));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8
/**
* Add security permission forbidding a type hierarchy.
*
* @param type the base type to forbid
* @since 1.4.7
*/
public void denyTypeHierarchy(Class type) {
denyPermission(new TypeHierarchyPermission(type));
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8
/**
* Add security permission forbidding types matching one of the specified regular expressions.
*
* @param regexps the regular expressions to forbid type names
* @since 1.4.7
*/
public void denyTypesByRegExp(Pattern[] regexps) {
denyPermission(new RegExpTypePermission(regexps));
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Add security permission forbidding explicit types.
*
* @param types the types to forbid
* @since 1.4.7
*/
public void denyTypes(Class[] types) {
denyPermission(new ExplicitTypePermission(types));
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Add security permission forbidding types matching one of the specified regular expressions.
*
* @param regexps the regular expressions to forbid type names
* @since 1.4.7
*/
public void denyTypesByRegExp(Pattern[] regexps) {
denyPermission(new RegExpTypePermission(regexps));
}
内容来源于网络,如有侵权,请联系作者删除!