SLING-2080 Apply patch by Angela Schreiber (thank you very much)

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1198771 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/auth/form/impl/AuthenticationFormServlet.java b/src/main/java/org/apache/sling/auth/form/impl/AuthenticationFormServlet.java
index c6def05..b6b89c1 100644
--- a/src/main/java/org/apache/sling/auth/form/impl/AuthenticationFormServlet.java
+++ b/src/main/java/org/apache/sling/auth/form/impl/AuthenticationFormServlet.java
@@ -64,6 +64,7 @@
      * @return The "translated" reason to render the login form or an empty
      *         string if there is no specific reason
      */
+    @Override
     protected String getReason(final HttpServletRequest request) {
         // return the resource attribute if set to a non-empty string
         Object resObj = request.getAttribute(AuthenticationHandler.FAILURE_REASON);
diff --git a/src/main/java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java b/src/main/java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java
index bf15f0b..cb9c72b 100644
--- a/src/main/java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java
+++ b/src/main/java/org/apache/sling/auth/form/impl/FormAuthenticationHandler.java
@@ -211,7 +211,7 @@
      * <p>
      * This name is derived from the prescription in the Servlet API 2.4
      * Specification, Section SRV.12.5.3.1 Login Form Notes: <i>In order for the
-     * authentication to proceeed appropriately, the action of the login form
+     * authentication to proceed appropriately, the action of the login form
      * must always be set to <code>j_security_check</code>.</i>
      */
     private static final String REQUEST_URL_SUFFIX = "/j_security_check";
@@ -417,6 +417,7 @@
      * sure the authentication data is removed either by removing the cookie or
      * by remove the HTTP Session attribute.
      */
+    @Override
     public void authenticationFailed(HttpServletRequest request,
             HttpServletResponse response, AuthenticationInfo authInfo) {
 
@@ -433,7 +434,7 @@
     }
 
     /**
-     * Called after successfull login with the given authentication info. This
+     * Called after successful login with the given authentication info. This
      * implementation ensures the authentication data is set in either the
      * cookie or the HTTP session with the correct security tokens.
      * <p>
@@ -445,12 +446,13 @@
      * removed from the cookie or the HTTP session and future requests will not
      * be authenticated any longer.
      */
+    @Override
     public boolean authenticationSucceeded(HttpServletRequest request,
             HttpServletResponse response, AuthenticationInfo authInfo) {
 
         /*
          * Note: This method is called if this handler provided credentials
-         * which succeeded loging into the repository
+         * which succeeded login into the repository
          */
 
         // ensure fresh authentication data
@@ -519,9 +521,9 @@
      * <p>
      * This method is intended to be called in case authentication succeeded.
      *
-     * @param request The curent request
+     * @param request The current request
      * @param response The current response
-     * @param authInfo The authentication info used to successfull log in
+     * @param authInfo The authentication info used to successful log in
      */
     private void refreshAuthData(final HttpServletRequest request,
             final HttpServletResponse response,
diff --git a/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java b/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java
index ed9b0ac..7d8b1fc 100644
--- a/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java
+++ b/src/main/java/org/apache/sling/auth/form/impl/TokenStore.java
@@ -86,7 +86,7 @@
     private volatile int currentToken = 0;
 
     /**
-     * A ring of tokens used to encypt.
+     * A ring of tokens used to encrypt.
      */
     private volatile SecretKey[] currentTokens;
 
@@ -416,7 +416,7 @@
      * <code>java.io.tmpdir</code> folder.</li>
      * </ul>
      * <p>
-     * <b>NOTE</b> This method generates entropy fast but not necessairily
+     * <b>NOTE</b> This method generates entropy fast but not necessarily
      * secure enough for seeding the random number generator.
      *
      * @return bytes of entropy