org.apache.wicket.authentication.strategy
Class NoOpAuthenticationStrategy

java.lang.Object
  extended by org.apache.wicket.authentication.strategy.NoOpAuthenticationStrategy
All Implemented Interfaces:
IAuthenticationStrategy

public class NoOpAuthenticationStrategy
extends java.lang.Object
implements IAuthenticationStrategy

A no-op implementation. No username or password will be persisted or retrieved.

Author:
Juergen Donnerstag

Constructor Summary
NoOpAuthenticationStrategy()
          Constructor
 
Method Summary
 java.lang.String[] load()
          If "rememberMe" is enabled, than load login name and password from the persistence storage (e.g.
 void remove()
          When the user logs out (session invalidation), than remove username and password from the persistence store
 void save(java.lang.String username, java.lang.String password)
          If "rememberMe" is enabled and login was successful, than store username and password in the persistence store (e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpAuthenticationStrategy

public NoOpAuthenticationStrategy()
Constructor

Method Detail

load

public java.lang.String[] load()
Description copied from interface: IAuthenticationStrategy
If "rememberMe" is enabled, than load login name and password from the persistence storage (e.g. Cookie) for automatic sign in. This is useful for applications which users typically have open the whole day but where the server invalidates the session after a timeout and you want to force the user to sign in again and again during the day.

Specified by:
load in interface IAuthenticationStrategy
Returns:
[0] = username, [1] = password, null if not found
See Also:
IAuthenticationStrategy.load()

save

public void save(java.lang.String username,
                 java.lang.String password)
Description copied from interface: IAuthenticationStrategy
If "rememberMe" is enabled and login was successful, than store username and password in the persistence store (e.g. Cookie).

Specified by:
save in interface IAuthenticationStrategy
See Also:
IAuthenticationStrategy.save(java.lang.String, java.lang.String)

remove

public void remove()
Description copied from interface: IAuthenticationStrategy
When the user logs out (session invalidation), than remove username and password from the persistence store

Specified by:
remove in interface IAuthenticationStrategy
See Also:
IAuthenticationStrategy.remove()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.