跟我学Shiro - 张开涛
.......................................................................................... 58 SUBJECT ................................................................................................ 可以看到:应用代码直接交互的对象是Subject,也就是说Shiro的对外API核心就是Subject; 其每个 API 的含义: Subject:主体,代表了当前“用户”,这个用户不一定是一个具体的人,与当前应用交互 的任何东西都是 Subject,如网络爬虫,机器人等;即一个抽象概念;所有 Subject 都绑定 到 SecurityManager,与 Subject 的所有交互都会委托给 SecurityManager;可以把 SecurityManager;可以把 Subject 认 为是一个门面;SecurityManager 才是实际的执行者; SecurityManager:安全管理器;即所有与安全有关的操作都会与 SecurityManager 交互; 且它管理着所有 Subject;可以看出它是 Shiro 的核心,它负责与后边介绍的其他组件进行 交互,如果学习过 SpringMVC,你可以把它看成 DispatcherServlet0 码力 | 219 页 | 4.16 MB | 10 月前3Class Layout
location within a derived class object. class Shape { ~~~ }; class Subject { ~~~ }; class ObservedShape: public Shape, public Subject { ~~~ }; The derived class object will have more than a single base *shape = obs; // safe, predefined conversion Subject *subj = obs; // safe, predefined conversion 54 shape subj obs ObservedShape object Shape subobject Subject subobject derived class members Copyright can have more than one valid address. 55 shape subj obs ObservedShape object Shape subobject Subject subobject derived class members Δ Copyright © 2020 by Stephen C. Dewhurst and Daniel Saks 540 码力 | 51 页 | 461.37 KB | 5 月前3Shiro support for the Spring Security plugin - Reference Documentation
Authentication instance to build and register a Shiro instance. It also removes the Shiro credentials when Subject you explicitly logout. 1.1 History Version 1.0.0 released December 7, 2015 Version 1.0-RC1 standard methods will work: Subject import org.apache.shiro.SecurityUtils org.apache.shiro.subject.Subject import ... Subject subject = SecurityUtils.getSubject() subject.checkPermission('printer:print:lp7200') print:lp7200') subject.isPermitted('printer:print:lp7200') subject.checkRole('ROLE_ADMIN') subject.hasRole('ROLE_ADMIN') subject.isAuthenticated() … etc 5 3 Configuration There are a few configuration0 码力 | 5 页 | 16.72 KB | 10 月前3Shiro support for the Spring Security plugin - Reference Documentation
Authentication instance to build and register a Shiro instance. It also removes the Shiro credentials when Subject you explicitly logout. 1.1 History Version 0.1 released January 06, 2013 4 2 Usage The first standard methods will work: Subject import org.apache.shiro.SecurityUtils org.apache.shiro.subject.Subject import ... Subject subject = SecurityUtils.getSubject() subject.checkPermission('printer:print:lp7200') print:lp7200') subject.isPermitted('printer:print:lp7200') subject.checkRole('ROLE_ADMIN') subject.hasRole('ROLE_ADMIN') subject.isAuthenticated() … etc 6 3 Configuration There are a few configuration0 码力 | 6 页 | 17.49 KB | 10 月前3Spring Security Shiro Plugin - Reference Documentation
authentication events and uses the Spring Security Authentication instance to build and register a Shiro Subject instance. It also removes the Shiro credentials when you explicitly logout. 1.1. History • Version but the standard Subject methods will work: import org.apache.shiro.SecurityUtils import org.apache.shiro.subject.Subject ... Subject subject = SecurityUtils.getSubject() subject.checkPermission(' checkPermission('printer:print:lp7200') subject.isPermitted('printer:print:lp7200') subject.checkRole('ROLE_ADMIN') subject.hasRole('ROLE_ADMIN') subject.isAuthenticated() ... etc 5 Chapter 3. Configuration There0 码力 | 8 页 | 122.93 KB | 10 月前3Conan 2.10 Documentation
interface of Conan. Private implementation details, and everything not included in the documentation is subject to change. • The compatibility is always considered forward. New APIs, tools, methods, helpers can authenticated upload. 5.4 Managing package metadata files Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. A Conan package is typically behaviour. 5.6 Save and restore packages from/to the cache Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. With the conan cache0 码力 | 803 页 | 5.02 MB | 10 月前3Conan 2.9 Documentation
interface of Conan. Private implementation details, and everything not included in the documentation is subject to change. • The compatibility is always considered forward. New APIs, tools, methods, helpers can authenticated upload. 5.4 Managing package metadata files Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. A Conan package is typically behaviour. 5.6 Save and restore packages from/to the cache Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. With the conan cache0 码力 | 795 页 | 4.99 MB | 10 月前3Conan 2.8 Documentation
interface of Conan. Private implementation details, and everything not included in the documentation is subject to change. • The compatibility is always considered forward. New APIs, tools, methods, helpers can authenticated upload. 5.4 Managing package metadata files Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. A Conan package is typically behaviour. 5.6 Save and restore packages from/to the cache Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. With the conan cache0 码力 | 785 页 | 4.95 MB | 10 月前3Conan 2.7 Documentation
interface of Conan. Private implementation details, and everything not included in the documentation is subject to change. • The compatibility is always considered forward. New APIs, tools, methods, helpers can authenticated upload. 5.4 Managing package metadata files Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. A Conan package is typically behaviour. 5.6 Save and restore packages from/to the cache Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. With the conan cache0 码力 | 779 页 | 4.93 MB | 10 月前3Conan 2.6 Documentation
interface of Conan. Private implementation details, and everything not included in the documentation is subject to change. • The compatibility is always considered forward. New APIs, tools, methods, helpers can authenticated upload. 5.4 Managing package metadata files Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. A Conan package is typically behaviour. 5.6 Save and restore packages from/to the cache Warning: This feature is experimental and subject to breaking changes. See the Conan stability section for more information. With the conan cache0 码力 | 777 页 | 4.91 MB | 10 月前3
共 124 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13