Java EE安全性API向前发展

Java EE安全API( JSR 375 )正在向前发展,正如Arjan Tijms在此处概述的那样http : //arjan-tijms.omnifaces.org/p/whats-new-in-java-ee-security-api-10 。 html

需要注意的一件事是,我们现在为参考实现有了一个名称,即Soteria 。 该名称起源于希腊神话,Soteria是安全和救赎的女神[ Wikipedia ]。 我们的Soteria可以在GitHub( https://github.com/javaee-security-spec/soteria )上找到,并具有Twitter句柄。 跟随@Soteria_RI

Soteria GitHub存储库包含几个示例,这些示例演示了到目前为止实现的功能。 我创建了两个其他示例,将Soteria与其他Java EE技术(例如MVC和JSF)结合在一起。 这些可以在https://github.com/ivargrimstad/security-samples中找到。

如以下代码所示,为MVC 1.0应用程序定义嵌入式身份存储非常简单。

@EmbeddedIdentityStoreDefinition({
    @Credentials(callerName = "hem", password = "cheese", groups = {"foo"}),
    @Credentials(callerName = "haw", password = "cheeze", groups = {"foo", "bar"})}
)
@DeclareRoles({"foo", "bar"})
@ApplicationPath("ui")
public class ApplicationConfig extends Application {
 
    @Override
    public Set<Class<?>> getClasses() {
        Set<Class<?>> classes = new HashSet<>();
        // add controllers
        return classes;
    }

这些示例将随着规范的发展而变化,Soteria也在不断发展。

翻译自: https://www.javacodegeeks.com/2016/02/java-ee-security-api-moving-forward.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Java EE 5 Platform Packages javax.activation The JavaBeans(TM) Activation Framework is used by the JavaMail(TM) API to manage MIME data. javax.annotation javax.annotation.security javax.ejb The javax.ejb package contains the Enterprise JavaBeans classes and interfaces that define the contracts between the enterprise bean and its clients and between the enterprise bean and the EJB container. javax.ejb.spi The javax.ejb.spi package defines interfaces that are implemented by the EJB container. javax.el Provides the API for the Unified Expression Language shared by the JSP 2.1 and JSF 1.2 technologies. javax.enterprise.deploy.model Provides Tool Vendor implementation classes. javax.enterprise.deploy.model.exceptions Provides Tool Vendor exception implementation classes. javax.enterprise.deploy.shared Provides shared objects for Tool Vendor and Product Vendor implementation classes. javax.enterprise.deploy.shared.factories Provides shared factory manager object for Tool Vendor and Product Vendor implementation classes. javax.enterprise.deploy.spi Provides J2EE Product Vendor implementation classes. javax.enterprise.deploy.spi.exceptions Provides J2EE Product Vendor deployment exception implementation classes. javax.enterprise.deploy.spi.factories Provides J2EE Product Vendor deployment factory implementation classes. javax.enterprise.deploy.spi.status Provides J2EE Product Vendor deployment status implementation classes. javax.faces Top level classes for the JavaServer(tm) Faces API. javax.faces.application APIs that are used to link an application's business logic objects to JavaServer Faces, as well as convenient pluggable mechanisms to manage the execution of an application that is based on JavaServer Faces. javax.faces.component Fundamental APIs for user interface components. javax.faces.component.html Specialized user interface component classes for HTML. javax.faces.context Classes and interfaces defining per-request state information. javax.faces.convert Contains classes and interfaces defining converters. javax.faces.el DEPRECATED Classes and interfaces for evaluating and processing reference expressions. javax.faces.event Interfaces describing events and event listeners, and concrete event implementation classes. javax.faces.lifecycle Classes and interfaces defining lifecycle management for the JavaServer Faces implementation. javax.faces.model Standard model data beans for JavaServer Faces. javax.faces.render Classes and interfaces defining the rendering model. javax.faces.validator Interface defining the validator model, and concrete validator implementation classes. javax.faces.webapp Classes required for integration of JavaServer Faces into web applications, including a standard servlet, base classes for JSP custom component tags, and concrete tag implementations for core tags. javax.interceptor The javax.interceptor package contains classes and interfaces for use with EJB interceptors. javax.jms The Java Message Service (JMS) API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages. javax.jws javax.jws.soap javax.mail The JavaMailTM API provides classes that model a mail system. javax.mail.event Listeners and events for the JavaMail API. javax.mail.internet Classes specific to Internet mail systems. javax.mail.search Message search terms for the JavaMail API. javax.mail.util Utility classes. javax.management.j2ee Provides the J2EE Management Enterprise Bean component (MEJB) interfaces. javax.management.j2ee.statistics Provides the standard interfaces for accessing performance data from J2EE managed objects Package Specification JSR 77, J2EE Management Related Documentation For overviews, tutorials, examples, guides, and tool documentation, please see: J2EE Tools javax.persistence The javax.persistence package contains the classes and interfaces that define the contracts between a persistence provider and the managed classes and the clients of the Java Persistence API. javax.persistence.spi The javax.persistence.spi package defines the classes and interfaces that are implemented by the persistence provider and the Java EE container for use by the container, provider, and/or Persistence bootstrap class in deployment and bootstrapping.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值