Author: bdemers
Date: Mon Jul  1 14:51:00 2019
New Revision: 1862387

URL: http://svn.apache.org/viewvc?rev=1862387&view=rev
Log:
publishing latest shiro site

Modified:
    shiro/site/publish/tutorial.html

Modified: shiro/site/publish/tutorial.html
URL: 
http://svn.apache.org/viewvc/shiro/site/publish/tutorial.html?rev=1862387&r1=1862386&r2=1862387&view=diff
==============================================================================
--- shiro/site/publish/tutorial.html (original)
+++ shiro/site/publish/tutorial.html Mon Jul  1 14:51:00 2019
@@ -254,7 +254,7 @@
     <hr class="message-inner-separator">
     <p>Apache Shiro was designed from day one to support <em>any</em> 
application - from the smallest command-line applications to the largest 
clustered web applications.  Even though we're creating a simple app for this 
tutorial, know that the same usage patterns apply no matter how your 
application is created or where it is deployed.</p>
 </div>
-<p>This tutorial requires Java 1.5 or later. We&rsquo;ll also be using Apache 
<a href="http://maven.apache.org";>Maven</a> as our build tool, but of course 
this is not required to use Apache Shiro. You may acquire Shiro&rsquo;s .jars 
and incorporate them in any way you like into your application, for example 
maybe using Apache <a href="http://ant.apache.org";>Ant</a> and <a 
href="http://ant.apache.org/ivy";>Ivy</a>.</p>
+<p>This tutorial requires Java 1.6 or later. We&rsquo;ll also be using Apache 
<a href="http://maven.apache.org";>Maven</a> as our build tool, but of course 
this is not required to use Apache Shiro. You may acquire Shiro&rsquo;s .jars 
and incorporate them in any way you like into your application, for example 
maybe using Apache <a href="http://ant.apache.org";>Ant</a> and <a 
href="http://ant.apache.org/ivy";>Ivy</a>.</p>
 <p>For this tutorial, please ensure that you are using Maven 2.2.1 or later. 
You should be able to type <code>mvn --version</code> in a command prompt and 
see something similar to the following:</p>
 <p><strong>Testing Maven Installation</strong></p>
 <pre><code class="bash">hazlewood:~/shiro-tutorial$ mvn --version
@@ -287,10 +287,10 @@ OS name: &quot;mac os x&quot; version: &
             &lt;plugin&gt;
                 &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                 &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
-                &lt;version&gt;2.0.2&lt;/version&gt;
+                &lt;version&gt;3.8.0&lt;/version&gt;
                 &lt;configuration&gt;
-                    &lt;source&gt;1.5&lt;/source&gt;
-                    &lt;target&gt;1.5&lt;/target&gt;
+                    &lt;source&gt;1.6&lt;/source&gt;
+                    &lt;target&gt;1.6&lt;/target&gt;
                     
&lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                 &lt;/configuration&gt;
             &lt;/plugin&gt;
@@ -320,14 +320,20 @@ OS name: &quot;mac os x&quot; version: &
         &lt;dependency&gt;
             &lt;groupId&gt;org.apache.shiro&lt;/groupId&gt;
             &lt;artifactId&gt;shiro-core&lt;/artifactId&gt;
-            &lt;version&gt;1.1.0&lt;/version&gt;
+            &lt;version&gt;1.4.1&lt;/version&gt;
         &lt;/dependency&gt;
         &lt;!-- Shiro uses SLF4J for logging.  We&#39;ll use the 
&#39;simple&#39; binding
              in this example app.  See http://www.slf4j.org for more info. 
--&gt;
         &lt;dependency&gt;
             &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
             &lt;artifactId&gt;slf4j-simple&lt;/artifactId&gt;
-            &lt;version&gt;1.6.1&lt;/version&gt;
+            &lt;version&gt;1.7.21&lt;/version&gt;
+            &lt;scope&gt;test&lt;/scope&gt;
+        &lt;/dependency&gt;
+        &lt;dependency&gt;
+            &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
+            &lt;artifactId&gt;jcl-over-slf4j&lt;/artifactId&gt;
+            &lt;version&gt;1.7.21&lt;/version&gt;
             &lt;scope&gt;test&lt;/scope&gt;
         &lt;/dependency&gt;
     &lt;/dependencies&gt;
@@ -418,7 +424,7 @@ admin = *
 schwartz = lightsaber:*
 goodguy = winnebago:drive:eagle5
 </code></pre>
-<p>As you see, this configuration basically sets up a small set of static user 
accounts, good enough for our first application. In later chapters, you will 
see how we can use more complex User data sources like relational databases, 
LDAP an ActiveDirectory, and more.</p>
+<p>As you see, this configuration basically sets up a small set of static user 
accounts, good enough for our first application. In later chapters, you will 
see how we can use more complex User data sources like relational databases, 
LDAP and ActiveDirectory, and more.</p>
 <a name="Tutorial-ReferencingtheConfiguration"></a>
 <h4><a href="#referencing-the-configuration" 
name="referencing-the-configuration">Referencing the Configuration</a></h4>
 <p>Now that we have an INI file defined, we can create the 
<code>SecurityManager</code> instance in our Tutorial application class. Change 
the <code>main</code> method to reflect the following updates:</p>
@@ -515,7 +521,7 @@ log.info( &quot;User [&quot; + currentUs
 }
 </code></pre>
 <p>We can also see if they have a permission to act on a certain type of 
entity:</p>
-<pre><code class="java">if ( currentUser.isPermitted( 
&quot;lightsaber:weild&quot; ) ) {
+<pre><code class="java">if ( currentUser.isPermitted( 
&quot;lightsaber:wield&quot; ) ) {
     log.info(&quot;You may use a lightsaber ring.  Use it wisely.&quot;);
 } else {
     log.info(&quot;Sorry, lightsaber rings are for schwartz masters 
only.&quot;);
@@ -601,7 +607,7 @@ public class Tutorial {
         }
 
         //test a typed permission (not instance-level)
-        if (currentUser.isPermitted(&quot;lightsaber:weild&quot;)) {
+        if (currentUser.isPermitted(&quot;lightsaber:wield&quot;)) {
             log.info(&quot;You may use a lightsaber ring.  Use it 
wisely.&quot;);
         } else {
             log.info(&quot;Sorry, lightsaber rings are for schwartz masters 
only.&quot;);


Reply via email to