Using Shiro's PasswordMatcher with a custom realm

前端 未结 3 1940
甜味超标
甜味超标 2021-01-20 12:53

I\'m using Apache Shiro with a custom JDBC realm to retrieve a user’s salt, password, hash algorithm name and number of hash iterations from the database which are all store

3条回答
  •  一整个雨季
    2021-01-20 13:28

    Took me a while to hunt down this url in one of my projects - http://meri-stuff.blogspot.com/2011/04/apache-shiro-part-2-realms-database-and.html

    The article links to this file JNDIAndSaltAwareJdbcRealm

    I've used that class successfully in my project to use salt in the password hash.

    HTH

提交回复
热议问题