浏览代码

Make getters in AbstractRememberMeServices protected rather than public

Luke Taylor 17 年之前
父节点
当前提交
47dec4e597

+ 3 - 3
core/src/main/java/org/springframework/security/ui/rememberme/AbstractRememberMeServices.java

@@ -249,7 +249,7 @@ public abstract class AbstractRememberMeServices implements RememberMeServices,
     }
 
     /**
-     * Called from autoLogin to process the submitted pesistent login cookie. Subclasses should
+     * Called from autoLogin to process the submitted persistent login cookie. Subclasses should
      * validate the cookie and perform any additional management required.
      *
      * @param cookieTokens the decoded and tokenized cookie value
@@ -330,11 +330,11 @@ public abstract class AbstractRememberMeServices implements RememberMeServices,
         this.tokenValiditySeconds = tokenValiditySeconds;
     }
 
-    public int getTokenValiditySeconds() {
+    protected int getTokenValiditySeconds() {
         return tokenValiditySeconds;
     }
 
-    public AuthenticationDetailsSource getAuthenticationDetailsSource() {
+    protected AuthenticationDetailsSource getAuthenticationDetailsSource() {
         return authenticationDetailsSource;
     }
 }