public class NoOpAuthenticationStrategy extends Object implements IAuthenticationStrategy
Constructor and Description |
---|
NoOpAuthenticationStrategy() |
Modifier and Type | Method and Description |
---|---|
String[] |
load()
If "rememberMe" is enabled, then load the saved credentials (e.g.
|
void |
remove()
When the user logs out (session invalidation), than remove username and password from the
persistence store
|
void |
save(String credential,
String... extraCredentials)
If "rememberMe" is enabled and login was successful, then store the given credentials in the
persistence store (e.g.
|
public String[] load()
IAuthenticationStrategy
load
in interface IAuthenticationStrategy
saved
credentialspublic void save(String credential, String... extraCredentials)
IAuthenticationStrategy
The implementation of this method should be symmetrical with the implementation of
IAuthenticationStrategy.load()
.
save
in interface IAuthenticationStrategy
credential
- The credential to store. For example: a security token or username.extraCredentials
- Optional extra credentials. For example: a passwordpublic void remove()
IAuthenticationStrategy
remove
in interface IAuthenticationStrategy
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.