Browse Source

TokenBasedRememberMeServices changed to use long instead of int for tokenValiditySeconds.

Ben Alex 20 years ago
parent
commit
8ae2276843

+ 3 - 3
core/src/main/java/org/acegisecurity/ui/rememberme/TokenBasedRememberMeServices.java

@@ -115,7 +115,7 @@ public class TokenBasedRememberMeServices implements RememberMeServices,
     private AuthenticationDao authenticationDao;
     private String key;
     private String parameter = DEFAULT_PARAMETER;
-    private int tokenValiditySeconds = 1209600; // 14 days
+    private long tokenValiditySeconds = 1209600; // 14 days
 
     //~ Methods ================================================================
 
@@ -143,11 +143,11 @@ public class TokenBasedRememberMeServices implements RememberMeServices,
         return parameter;
     }
 
-    public void setTokenValiditySeconds(int tokenValiditySeconds) {
+    public void setTokenValiditySeconds(long tokenValiditySeconds) {
         this.tokenValiditySeconds = tokenValiditySeconds;
     }
 
-    public int getTokenValiditySeconds() {
+    public long getTokenValiditySeconds() {
         return tokenValiditySeconds;
     }
 

+ 1 - 0
doc/xdocs/changes.xml

@@ -27,6 +27,7 @@
   <body>
     <release version="0.8.2" date="In CVS">
       <action dev="benalex" type="fix">Correct location of AuthenticationSimpleHttpInvokerRequestExecutor in clientContext.xml</action>
+      <action dev="benalex" type="fix">TokenBasedRememberMeServices changed to use long instead of int for tokenValiditySeconds (SPR-807)</action>
       <action dev="benalex" type="update">Add credentialsExpiredFailureUrl getter/setter to AbstractProcessingFilter</action>
     </release>
     <release version="0.8.1" date="2005-03-22">