哪个JAR包含weblogic.servlet.security.ServletAuthentication类? [英] Which JAR contains the weblogic.servlet.security.ServletAuthentication class?

查看:564
本文介绍了哪个JAR包含weblogic.servlet.security.ServletAuthentication类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建一个servlet从Oracle Glassfish上运行的多个JSF应用程序注销。我尝试了下面的代码,

  weblogic.servlet.security.ServletAuthentication.logout(request); 
weblogic.servlet.security.ServletAuthentication.invalidateAll(request);
weblogic.servlet.security.ServletAuthentication.killCookie(request);

但是我无法找到包含所需类的JAR文件,以便将代码编译。我下载了Oracle WebLogic并尝试了各种JAR,但是没有人编写代码。



哪个JAR包含所需的类,哪里可以找到它?

解决方案

您正在查找的类位于名为 wls-api.jar的jar中。然而,您可能在寻找错误的东西,因为如果您正在开发应用程序以在Glassfish上运行,您应该使用标准技术(例如JSR- 196描述了此处 here )。

因为它不明显你正在努力实现的我不能给出任何进一步的详细建议,但有一个 plenty nofollow> of 文档有关Java EE安全性的信息。


I trying to create a servlet to logout from multiple JSF applications running on Oracle Glassfish. I tried the following code,

weblogic.servlet.security.ServletAuthentication.logout(request);
weblogic.servlet.security.ServletAuthentication.invalidateAll(request);
weblogic.servlet.security.ServletAuthentication.killCookie(request);

but I am not able to find the JAR file containing the required class in order to get the code to compile. I downloaded Oracle WebLogic and tried various of its JARs, but no one of them made the code to compile.

Which JAR does contain the required class and where can I find it?

解决方案

The class you are looking for is in a jar named wls-api.jar.

However, you're probably searching for the wrong thing because if you are developing applications to run on Glassfish you should stick with the standard techniques (e.g. JSR-196 described here or here).

Because it isn't obvious what you are trying to implement I can't give any further detailed advice but there is plenty of documentation available about Java EE Security.

这篇关于哪个JAR包含weblogic.servlet.security.ServletAuthentication类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆