博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Spring Security 5.2.0.M2 发布,Spring 安全框架
阅读量:6934 次
发布时间:2019-06-27

本文共 813 字,大约阅读时间需要 2 分钟。

  hot3.png

Spring Security 5.2.0.M2 已发布,该版本包含。下面说说值得关注的更新:

OAuth 2.0

  • 客户端支持 PKEC
  • OpenID 连接 RP-Initiated Logout

  • 能够使用 JwtDecoder 的对称密钥

  • NimbusReactiveJwtDecoder 能够采用自定义处理器

  • 支持资源服务器令牌自检

  • 支持资源服务器多租户(仅限 Servlet)

Core

  • 将密钥材料转换为密钥实例
  • 支持 JDK 12
  • 引入 AuthenticationManagerResolver
  • 为方法参数引入 @CurrentSecurityContext

与之前的 @AuthenticationPrincipal 一样,@CurrentSecurityContext 使用参数解析器来检索 SecurityContext 的各个方面:

public String hello(@CurrentSecurityContext        SecurityContext context) {    return Optional.ofNullable(context.getAuthentication())            .map(Authentication::getName).orElse("world");}// orpublic String hello(@CurrentSecurityContext        (expression="authentication.name") String name) {    return Optional.ofNullable(name).orElse("world");}

Web

  • 支持 Clear-Site-Data 标头
  • 支持 HSTS 预加载
  • 引入 CompositeHeaderWriter,以及其他一些 

详情可查看。

下载地址:

转载地址:http://pmwnl.baihongyu.com/

你可能感兴趣的文章
java各种容器内部实现原理
查看>>
linux下同时安装多个tomcat实例
查看>>
validate做前端表单验证
查看>>
主动,是因为在乎,不再联系,是因为感到自己多余
查看>>
PHP语言中global和$GLOBALS[]的分析
查看>>
Delphi 的编译指令(1): $DEFINE、$UNDEF、$IFDEF、$ELSE、$ENDI
查看>>
轻量级HTTP服务器Nginx(配置与调试Nginx)(转)
查看>>
推荐给c++学习者的经典
查看>>
Windows下如何安装MariaDB
查看>>
GraphView
查看>>
php调试方法
查看>>
js模仿flash写字动画
查看>>
通过变长数组(VLA)来看编译器的不同
查看>>
企业项目管理体系
查看>>
vim 初学简单设置
查看>>
RobotFrameWork(五)控制流之if语句——Run Keyword If
查看>>
javascript学习之基本概念
查看>>
超凡蜘蛛侠观后感
查看>>
关于android分辨率和使用iphone版切图
查看>>
快应用quickapp快速入门教程 by五个半柠檬2
查看>>