我是靠谱客的博主 飘逸小蜜蜂,这篇文章主要介绍Java SecurityManager checkPackageAccess()方法与示例,现在分享给大家,希望可以做个参考。

SecurityManager类的checkPackageAccess()方法 (SecurityManager Class checkPackageAccess() method)

  • checkPackageAccess() method is available in java.lang package.

    checkPackageAccess()方法在java.lang包中可用。

  • We call getProperty("package.access") to get a list of restricted package and it checks when pkg_name starts with or similar to any of the list of restricted packages and when it matches then it calls checkPermission with the RuntimePermission("accessClassInPackage."+pkg_name).

    我们调用getProperty(“ package.access”)来获取受限程序包列表,它检查pkg_name何时以任何受限程序包列表开头或与之类似,并且何时匹配,然后调用带有RuntimePermission(“ accessClassInPackage”的checkPermission)。 + pkg_name)。

  • checkPackageAccess() method is a non-static method, it is accessible with the class object only and

最后

以上就是飘逸小蜜蜂最近收集整理的关于Java SecurityManager checkPackageAccess()方法与示例的全部内容,更多相关Java内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(109)

评论列表共有 0 条评论

立即
投稿
返回
顶部