Author: jdonnerstag
Date: Wed Dec 23 09:05:23 2009
New Revision: 893435
URL: http://svn.apache.org/viewvc?rev=893435&view=rev
Log:
WICKET-2591 Allow subclasses of AuthenticatedWebSession to set "signedIn" field
Modified:
wicket/branches/wicket-1.4.x/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/AuthenticatedWebSession.java
Modified:
wicket/branches/wicket-1.4.x/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/AuthenticatedWebSession.java
URL:
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/AuthenticatedWebSession.java?rev=893435&r1=893434&r2=893435&view=diff
==============================================================================
---
wicket/branches/wicket-1.4.x/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/AuthenticatedWebSession.java
(original)
+++
wicket/branches/wicket-1.4.x/wicket-auth-roles/src/main/java/org/apache/wicket/authentication/AuthenticatedWebSession.java
Wed Dec 23 09:05:23 2009
@@ -30,9 +30,6 @@
*/
public abstract class AuthenticatedWebSession extends WebSession
{
- /**
- *
- */
private static final long serialVersionUID = 1L;
/**
@@ -117,4 +114,18 @@
{
signedIn = false;
}
+
+ /**
+ * Cookie based logins (remember me) may not rely on putting username
and password into the
+ * cookie but something else that safely identifies the user. This
method is meant to support
+ * these use cases.
+ *
+ * @see #authenticate(String, String)
+ *
+ * @param value
+ */
+ public final void signIn(boolean value)
+ {
+ signedIn = value;
+ }
}