当前位置: 首页 > news >正文

转运公司网站制作做网站那个公司好

转运公司网站制作,做网站那个公司好,传统系统和企业解决方案,wordpress插件 flyzooSpring Security是什么 Spring Security是一个能够为基于Spring的企业应用系统提供声明式的安全访问控制解决方案的安全框架。它提供了一组可以在Spring应用上下文中配置的Bean#xff08;注#xff1a;包括认证与权限获取、配置、处理相关实例#xff09;#xff0c;充分利…Spring Security是什么 Spring Security是一个能够为基于Spring的企业应用系统提供声明式的安全访问控制解决方案的安全框架。它提供了一组可以在Spring应用上下文中配置的Bean注包括认证与权限获取、配置、处理相关实例充分利用了Spring IoCDI控制反转Inversion of Control ,DI:Dependency Injection 依赖注入和AOP面向切面编程注代理增强类功能为应用系统提供声明式的安全访问控制功能减少了为企业系统安全控制编写大量重复代码的工作。 核心类库与认证流程 核心验证器 AuthenticationManager 该对象提供了认证方法的入口接收一个Authentiaton对象作为参数; public interface AuthenticationManager {Authentication authenticate(Authentication authentication) throws AuthenticationException; } 验证逻辑 AuthenticationManager 接收 Authentication 对象作为参数并通过 authenticate(Authentication) 方法对其进行验证AuthenticationProvider实现类用来支撑对 Authentication 对象的验证动作UsernamePasswordAuthenticationToken实现了 Authentication主要是将用户输入的用户名和密码进行封装并供给 AuthenticationManager 进行验证验证完成以后将返回一个认证成功的 Authentication 对象 ProviderManager 它是 AuthenticationManager 的一个实现类提供了基本的认证逻辑和方法它包含了一个 ListAuthenticationProvider 对象通过 AuthenticationProvider 接口来扩展出不同的认证提供者(当Spring Security默认提供的实现类不能满足需求的时候可以扩展AuthenticationProvider 覆盖supports(Class? authentication) 方法) 实现逻辑 public Authentication authenticate(Authentication authentication) throws AuthenticationException { //#1.获取当前的Authentication的认证类型 Class? extends Authentication toTest authentication.getClass(); AuthenticationException lastException null; Authentication result null; boolean debug logger.isDebugEnabled(); //#2.遍历所有的providers使用supports方法判断该provider是否支持当前的认证类型不支持的话继续遍历 for (AuthenticationProvider provider : getProviders()) { if (!provider.supports(toTest)) { continue; } if (debug) { logger.debug(Authentication attempt using provider.getClass().getName()); } try { #3.支持的话调用provider的authenticat方法认证 result provider.authenticate(authentication); if (result ! null) { #4.认证通过的话重新生成Authentication对应的Token copyDetails(authentication, result); break; } } catch (AccountStatusException e) { prepareException(e, authentication); // SEC-546: Avoid polling additional providers if auth failure is due to // invalid account status throw e; } catch (InternalAuthenticationServiceException e) { prepareException(e, authentication); throw e; } catch (AuthenticationException e) { lastException e; } } if (result null parent ! null) { // Allow the parent to try. try { #5.如果#1 没有验证通过则使用父类型AuthenticationManager进行验证 result parent.authenticate(authentication); } catch (ProviderNotFoundException e) { // ignore as we will throw below if no other exception occurred prior to // calling parent and the parent // may throw ProviderNotFound even though a provider in the child already // handled the request } catch (AuthenticationException e) { lastException e; } } #6. 是否擦除敏感信息 if (result ! null) { if (eraseCredentialsAfterAuthentication (result instanceof CredentialsContainer)) { // Authentication is complete. Remove credentials and other secret data 转载于:https://www.cnblogs.com/free-wings/p/9308592.html
http://www.zqtcl.cn/news/592639/

相关文章:

  • 做的精美的门户网站推荐附近编程培训机构
  • 台州黄岩做网站太原网站建设王道下拉惠
  • 深圳设计网站公司互联网服务平台投诉中心
  • 做seo网站优化哪家强济南网站建设公司排名
  • tp5网站文档归档怎么做手机虚拟机哪个好用
  • 网站建设公司的业务范围万网做网站多少钱
  • 做网站要用写接口6wordpress 汽车租赁
  • 网站开发方向paypal账号注册
  • 如何选择做pc端网站重庆平台网站建设企业
  • 一个人做网站好累电子商城采购流程
  • 网站制作维护价格信息网站建设方案
  • 如何选择建网站公司能看人与动物做的网站
  • 温州网站建设方案外包不能访问子目录的网站
  • 建设拼多多一样网站需要多少钱wordpress企业站主题免费
  • 无锡网站制作哪家公司好做微信文章的网站
  • 网站 制作信产部网站备案
  • 做流程图表的网站网络营销推广网站收录
  • iis5.1怎么新建网站电子商务网站建设与管理实训内容答案
  • 做网站背景步骤知名的vi设计公司
  • 中国室内设计师联盟网站我注册过的网站
  • 如何给自己的公司做网站网站设计电商首页
  • 成都网站开发培训综合网站开发实训总结
  • 个人备案网站名称文学网站开发
  • 花钱做推广广告哪个网站好泗洪网页设计
  • 望牛墩镇网站建设公司网站建设企业熊掌号
  • 做网站一般会出现的问题静态网站的好处就是安全性好从而
  • 做海鲜代理在什么网站建筑网片钢筋网生产厂家
  • 万网网站建设方案书导购网站开发要多少钱
  • 做网站muse好还是DW好用wordpress %link
  • html5门户网站模版做投标需要知道什么网站