Class NoOpAuthenticationStrategy
- java.lang.Object
-
- org.apache.wicket.authentication.strategy.NoOpAuthenticationStrategy
-
- All Implemented Interfaces:
IAuthenticationStrategy
public class NoOpAuthenticationStrategy extends Object implements IAuthenticationStrategy
A no-op implementation. No username or password will be persisted or retrieved.- Author:
- Juergen Donnerstag
-
-
Constructor Summary
Constructors Constructor Description NoOpAuthenticationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
load()
If "rememberMe" is enabled, then load the saved credentials (e.g.void
remove()
When the user logs out (session invalidation), then remove username and password from the persistence storevoid
save(String credential, String... extraCredentials)
If "rememberMe" is enabled and login was successful, then store the given credentials in the persistence store (e.g.
-
-
-
Constructor Detail
-
NoOpAuthenticationStrategy
public NoOpAuthenticationStrategy()
-
-
Method Detail
-
load
public String[] load()
Description copied from interface:IAuthenticationStrategy
If "rememberMe" is enabled, then load the saved credentials (e.g. username 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 interfaceIAuthenticationStrategy
- Returns:
- The
saved
credentials
-
save
public void save(String credential, String... extraCredentials)
Description copied from interface:IAuthenticationStrategy
If "rememberMe" is enabled and login was successful, then store the given credentials in the persistence store (e.g. Cookie).The implementation of this method should be symmetrical with the implementation of
IAuthenticationStrategy.load()
.- Specified by:
save
in interfaceIAuthenticationStrategy
- Parameters:
credential
- The credential to store. For example: a security token or username.extraCredentials
- Optional extra credentials. For example: a password
-
remove
public void remove()
Description copied from interface:IAuthenticationStrategy
When the user logs out (session invalidation), then remove username and password from the persistence store- Specified by:
remove
in interfaceIAuthenticationStrategy
-
-