public interface SessionSecretComputer
Instead of using the same security fingerprint secret for all sessions, this can be implemented to provide a custom secret per user or session to further increase the security.
Modifier and Type | Method and Description |
---|---|
String |
computeSecret(Map<String,String> currentSession)
Computes or provides a secret based on the decoded session.
|
String computeSecret(Map<String,String> currentSession)
Note that the secret itself must not be contained in the session data, as this would disable the session security entirely. Rather the user ID or a similar session value can be used to determine a secret and safe session value.
currentSession
- the decoded session dataCopyright © 2018. All rights reserved.