Permalink
Browse files

Merge pull request #6 from dominik-s/session.lastvalidation

fixed IllegalArgumentException due to missing crowd-property
  • Loading branch information...
2 parents 9ee3da1 + f6a6ce9 commit 56e408cf0ad872b87017fa00df32202b7f27f760 @soudmaijer committed Oct 15, 2012
@@ -237,6 +237,7 @@ private void initCrowdClient() {
p.setProperty("application.name", config.getApplicationName());
p.setProperty("application.password", config.getApplicationPassword());
p.setProperty("session.validationinterval", config.getSessionValidationinterval());
+ p.setProperty("session.lastvalidation", config.getSessionLastvalidation());
p.setProperty("cookie.tokenkey", config.getCookieTokenkey());
p.setProperty("http.max.connections", config.getHttpMaxConnections());
p.setProperty("http.timeout", config.getHttpTimeout());
@@ -73,6 +73,10 @@ public String getSessionValidationinterval() {
return sessionValidationinterval;
}
+ public String getSessionLastvalidation() {
+ return sessionLastvalidation;
+ }
+
public String getCookieTokenkey() {
return cookieTokenkey;
}
@@ -103,6 +107,10 @@ public void setSessionValidationinterval(String sessionValidationinterval) {
this.sessionValidationinterval = sessionValidationinterval;
}
+ public void setSessionLastvalidation(String sessionLastvalidation) {
+ this.sessionLastvalidation = sessionLastvalidation;
+ }
+
public void setCookieTokenkey(String cookieTokenkey) {
this.cookieTokenkey = cookieTokenkey;
}
@@ -138,6 +146,11 @@ public void setHttpTimeout(String httpTimeout) {
@XmlElement(name = "sessionValidationinterval")
private String sessionValidationinterval = "15";
/**
+ * The session key to use when storing a Date value of the user's last authentication.
+ */
+ @XmlElement(name = "sessionLastvalidation")
+ private String sessionLastvalidation = "session.lastvalidation";
+ /**
* When using Crowd for single sign-on (SSO), you can specify the SSO cookie name for each application. Under the standard configuration, Crowd will use a single, default cookie name for all Crowd-connected applications. You can override the default with your own cookie name.
* As well as allowing you to define the SSO cookie name, this feature also allows you to divide your applications into different SSO groups. For example, you might use one SSO token for your public websites and another for your internal websites.
*/

0 comments on commit 56e408c

Please sign in to comment.