Skip to content

Commit 744128d

Browse files
authored
Deprecate RandomSessionIdGenerator due to insufficient entropy (#2770)
1 parent e384e9d commit 744128d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/src/main/java/org/apache/shiro/session/mgt/eis/RandomSessionIdGenerator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
* implementation is a {@link java.security.SecureRandom SecureRandom} with the {@code SHA1PRNG} algorithm.
3131
*
3232
* @since 1.0
33+
* @deprecated since 2.2.1. Use {@link JavaUuidSessionIdGenerator} instead, as this class is no longer considered
34+
* secure by modern standards.
3335
*/
36+
@Deprecated(forRemoval = true, since = "2.2.1")
3437
public class RandomSessionIdGenerator implements SessionIdGenerator {
3538

3639
private static final Logger LOGGER = LoggerFactory.getLogger(RandomSessionIdGenerator.class);

0 commit comments

Comments
 (0)