You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2021/01/13 19:49:27 UTC
[myfaces] branch 2.0.x updated: MYFACES-4373: prefer SecureRandom
for token generation
This is an automated email from the ASF dual-hosted git repository.
tandraschko pushed a commit to branch 2.0.x
in repository https://gitbox.apache.org/repos/asf/myfaces.git
The following commit(s) were added to refs/heads/2.0.x by this push:
new 2a21fb9 MYFACES-4373: prefer SecureRandom for token generation
new 4468c39 Merge pull request #131 from wtlucy/secureRandom_2.0.x
2a21fb9 is described below
commit 2a21fb94061acbc728269519dcc88bca539978ed
Author: Bill Lucy <wt...@gmail.com>
AuthorDate: Mon Jan 11 16:17:55 2021 -0500
MYFACES-4373: prefer SecureRandom for token generation
---
.../myfaces/application/viewstate/ServerSideStateCacheImpl.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/impl/src/main/java/org/apache/myfaces/application/viewstate/ServerSideStateCacheImpl.java b/impl/src/main/java/org/apache/myfaces/application/viewstate/ServerSideStateCacheImpl.java
index b17a70c..a6c4c80 100644
--- a/impl/src/main/java/org/apache/myfaces/application/viewstate/ServerSideStateCacheImpl.java
+++ b/impl/src/main/java/org/apache/myfaces/application/viewstate/ServerSideStateCacheImpl.java
@@ -180,12 +180,12 @@ class ServerSideStateCacheImpl extends StateCache<Object, Object>
/**
* Adds a random key to the generated view state session token.
*/
- @JSFWebConfigParam(since="2.1.9, 2.0.15", expectedValues="secureRandom, random, none",
- defaultValue="none", group="state")
+ @JSFWebConfigParam(since="2.1.9, 2.0.15", expectedValues="secureRandom, random",
+ defaultValue="secureRandom", group="state")
public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_PARAM
= "org.apache.myfaces.RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN";
public static final String RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_PARAM_DEFAULT =
- RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_NONE;
+ RANDOM_KEY_IN_VIEW_STATE_SESSION_TOKEN_SECURE_RANDOM;
/**
* Set the default length of the random key added to the view state session token.