Apache Shiro Quick Start tutorial, Shiro Basic Tutorial (this article is very GOOD)
Source: Internet
Author: User
<span id="Label3"></p><span class="s1"><span class="s1"><strong>The first part what is Apache Shiro</strong></span></span><span class="s1"><span class="s1"><strong> </strong></span></span><span class="s1"><span class="s1"><strong> </strong></span></span><span class="s1"><span class="s1"><strong>1. What is Apache shiro:</strong></span></span><span class="s1"><span class="s1"><strong> </strong></span></span><p class="p4"><p class="p4"><span class="s1">Apache Shiro is a powerful and Easy-to-use Java security framework that provides authentication, authorization, encryption, and Session Management</span></p></p><p class="p4"><p class="p4"><span class="s1">As with spring security, it is a security framework, but compared to spring security, it is a simple and straightforward way to authenticate and Authorize.</span></p></p><p class="p1"><p class="p1"></p></p><p class="p1"><p class="p1"></p></p><p class="p1"><p class="p1"></p></p><span class="s1"><span class="s1"><strong>2. The three core components of Apache Shiro:</strong></span></span><span class="s1"><span class="s1"><strong> </strong></span></span><p class="p4"><p class="p4"><span class="s1">1, Subject: The operation of the current user</span></p></p><p class="p4"><p class="p4"><span class="s1">2, Securitymanager: for the management of all subject</span></p></p><p class="p4"><p class="p4"><span class="s1">3, Realms: for the authorization information verification</span></p></p><p class="p1"><p class="p1"><span class="s1"></span></p></p><p class="p4"><p class="p4"><span class="s1">Subject: the current user, in the Rights management application often need to know who can operate what, who has the right to operate the program, Shiro need to Subject to provide the basis of the current user information, Subject not only represents a user, it can be a third-party process, Background accounts (Daemon Account) or something like that.</span></p></p><p class="p4"><p class="p4"><span class="s1">Securitymanager: the manager of all subject, which is the core component of the Shiro framework, can be seen as a global management component of a Shiro framework for dispatching services of various Shiro Frameworks.</span></p></p><p class="p4"><p class="p4"><span class="s1">Realms:realms is the User's information authenticator and the User's permission to the witness, we need to implement the Realms from the definition of the management of our own system within the rules of Authority.</span></p></p><p class="p1"><p class="p1"></p></p><p class="p1"><p class="p1"></p></p><p class="p1"><p class="p1"></p></p><span class="s1"><span class="s1"><strong>3, authentication and Authorization</strong></span></span><span class="s1"><span class="s1"><strong> </strong></span></span><p class="p4"><p class="p4"><span class="s1">In the Shiro user rights authentication process, it is implemented by two Methods:</span></p></p><p class="p4"><p class="p4"><span class="s1">1, Authentication: is the process of verifying the identity of the User.</span></p></p><p class="p4"><p class="p4"><span class="s1">2, Authorization: is authorized access control, for the User's actions to witness authorization, to prove that the user is allowed to do the current operation, such as access to a link, a resource file, and so On.</span></p></p><p class="p1"><p class="p1"><span class="s1"></span></p></p><p class="p1"><p class="p1"></p></p><p class="p1"><p class="p1"></p></p><span class="s1"><span class="s1"><strong>4. Other Components:</strong></span></span><span class="s1"><span class="s1"><strong> </strong></span></span><p class="p4"><p class="p4"><span class="s1">In addition to the several components above, Shiro has several other components:</span></p></p><p class="p4"><p class="p4"><span class="s1">1. Sessionmanager:shiro provides a conversational programming paradigm for any Application.</span></p></p><p class="p4"><p class="p4"><span class="s1">2. Cachemanager: provides caching support for other components of shiro.</span></p></p><p class="p1"><p class="p1"></p></p><p class="p1"><p class="p1"></p></p><p class="p1"><p class="p1"></p></p><p class="p1"><p class="p1"></p></p><span class="s1"><span class="s1"><strong>5, Shiro Complete Structure diagram:</strong></span></span><span class="s1"><span class="s1"><strong><br></strong></span></span><p class="p1"><p class="p1"><span class="s1"></span></p></p><p class="p4"><p class="p4"><span class="s1">Turn from: Http://blog.csdn.net/swingpyzf/article/details/46342023/(there are examples, there are source code, write very good, very worth to See)<br></span></p></p><p><p>Apache Shiro Quick Start tutorial, Shiro Basic Tutorial (this article is very GOOD)</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.