public interface IAuthenticationStrategy
Application.getSecuritySettings()
. Implementations determine how logon data (username and
password) are persisted (e.g. Cookie), retrieved and removed.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.
|
String[] load()
saved
credentialsvoid save(String credential, String... extraCredentials)
The implementation of this method should be symmetrical with the implementation of
load()
.
credential
- The credential to store. For example: a security token or username.extraCredentials
- Optional extra credentials. For example: a passwordvoid remove()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.