Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/397.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 检测Websphere Liberty是否安全?_Java_Jakarta Ee_Websphere_Websphere Liberty - Fatal编程技术网

Java 检测Websphere Liberty是否安全?

Java 检测Websphere Liberty是否安全?,java,jakarta-ee,websphere,websphere-liberty,Java,Jakarta Ee,Websphere,Websphere Liberty,我们正在尝试从传统的Websphere迁移到Liberty概要文件。出现的几个问题之一是,在WAS下,我们使用com.ibm.ws.security.core.SecurityContext类来检测是否通过调用isSecurityEnabled()启用了服务器的安全性 但这个类在Liberty中找不到,因此会产生错误。它是否在其中一个功能中?我不知道如何找到哪一个,如果是这样的话。如果没有,是否有一种与自由同等的技术 如果在server.xml中包含了appSecurity-2.0功能,则可以判

我们正在尝试从传统的Websphere迁移到Liberty概要文件。出现的几个问题之一是,在WAS下,我们使用com.ibm.ws.security.core.SecurityContext类来检测是否通过调用isSecurityEnabled()启用了服务器的安全性


但这个类在Liberty中找不到,因此会产生错误。它是否在其中一个功能中?我不知道如何找到哪一个,如果是这样的话。如果没有,是否有一种与自由同等的技术

如果在server.xml中包含了appSecurity-2.0功能,则可以判断Liberty中是否启用了安全性


通过编程,您可以调用WSSecurityHelper.isServerSecurityEnabled()以了解Liberty服务器上是否启用了安全性

如果您在Server.xml中包含了appSecurity-2.0功能,则可以判断Liberty中是否启用了安全性


通过编程,您可以调用WSSecurityHelper.isServerSecurityEnabled()以了解Liberty服务器上是否启用了安全功能

谢谢!AppSecurity2似乎是javaee-8.0自动提供的。有没有办法使用javaee-8.0并将服务器置于不安全模式(我们在特定的培训环境和特定的开发任务中这样做)。没有,您需要查看javaee-8.0功能并单独配置它们,appSecurity-2.0除外。我们知道这并不理想。当您不需要安全性时,您可以将访问角色映射到每个人,这意味着没有人需要登录。谢谢!AppSecurity2似乎是javaee-8.0自动提供的。有没有办法使用javaee-8.0并将服务器置于不安全模式(我们在特定的培训环境和特定的开发任务中这样做)。没有,您需要查看javaee-8.0功能并单独配置它们,appSecurity-2.0除外。我们知道这并不理想。当您不需要安全性时,您可以将访问角色映射到每个人,这意味着没有人需要登录。