Luke Taylor 20 éve
szülő
commit
17b3424b85

+ 5 - 5
core/src/main/java/org/acegisecurity/concurrent/SessionRegistryImpl.java

@@ -77,7 +77,7 @@ public class SessionRegistryImpl implements SessionRegistry,
     }
 
     public SessionInformation getSessionInformation(String sessionId) {
-        Assert.hasText(sessionId, "SessionId required as per inerface contract");
+        Assert.hasText(sessionId, "SessionId required as per interface contract");
 
         return (SessionInformation) sessionIds.get(sessionId);
     }
@@ -90,7 +90,7 @@ public class SessionRegistryImpl implements SessionRegistry,
     }
 
     public void refreshLastRequest(String sessionId) {
-        Assert.hasText(sessionId, "SessionId required as per inerface contract");
+        Assert.hasText(sessionId, "SessionId required as per interface contract");
 
         SessionInformation info = getSessionInformation(sessionId);
 
@@ -101,8 +101,8 @@ public class SessionRegistryImpl implements SessionRegistry,
 
     public void registerNewSession(String sessionId, Object principal)
         throws SessionAlreadyUsedException {
-        Assert.hasText(sessionId, "SessionId required as per inerface contract");
-        Assert.notNull(principal, "Principal required as per inerface contract");
+        Assert.hasText(sessionId, "SessionId required as per interface contract");
+        Assert.notNull(principal, "Principal required as per interface contract");
 
         if (getSessionInformation(sessionId) != null) {
             throw new SessionAlreadyUsedException("Session " + sessionId
@@ -124,7 +124,7 @@ public class SessionRegistryImpl implements SessionRegistry,
     }
 
     public void removeSessionInformation(String sessionId) {
-        Assert.hasText(sessionId, "SessionId required as per inerface contract");
+        Assert.hasText(sessionId, "SessionId required as per interface contract");
 
         SessionInformation info = getSessionInformation(sessionId);
 

+ 1 - 1
core/src/main/java/org/acegisecurity/context/HttpSessionContextIntegrationFilter.java

@@ -85,7 +85,7 @@ import javax.servlet.http.HttpSession;
  * </p>
  * 
  * <p>
- * This filter MUST be executed BEFORE any authentication procesing mechanisms.
+ * This filter MUST be executed BEFORE any authentication processing mechanisms.
  * Authentication processing mechanisms (eg BASIC, CAS processing filters etc)
  * expect the <code>SecurityContextHolder</code> to contain a valid
  * <code>SecurityContext</code> by the time they execute.

+ 3 - 3
core/src/main/java/org/acegisecurity/providers/ldap/authenticator/AbstractLdapAuthenticator.java

@@ -68,7 +68,7 @@ public abstract class AbstractLdapAuthenticator implements LdapAuthenticator,
 
         String rootDn = initialDirContextFactory.getRootDn();
 
-        if(rootDn.length() > 0) {
+        if (rootDn.length() > 0) {
             dnSuffix = "," + rootDn;
         }
     }
@@ -85,7 +85,7 @@ public abstract class AbstractLdapAuthenticator implements LdapAuthenticator,
      * set.
      */
     protected List getUserDns(String username) {
-        if(userDnFormat == null) {
+        if (userDnFormat == null) {
             return new ArrayList(0);
         }
 
@@ -112,7 +112,7 @@ public abstract class AbstractLdapAuthenticator implements LdapAuthenticator,
 //        this.userDnPattern = dnPattern;
         userDnFormat = new MessageFormat[dnPattern.length];
 
-        for(int i=0; i < dnPattern.length; i++) {
+        for (int i=0; i < dnPattern.length; i++) {
             userDnFormat[i] = new MessageFormat(dnPattern[i]);
         }
     }