public static void contributeWebSecurityManager(Configuration<Realm> configuration, @InjectService("JdbcSaltedRealm") AuthorizingRealm jdbcSaltedRealm) { CredentialsMatcher credentialsMatcher = new HashedCredentialsMatcher(); // configure matcher as you prefer... jdbcSaltedRealm.setCredentialsMatcher(credentialsMatcher); configuration.add(realm); }
This is documented plus there are lots of code samples, take a look if you are still unsure. Kalle On Tue, Jun 14, 2011 at 9:54 PM, cablepuff <cablep...@gmail.com> wrote: > Hi I have the following credential matcher from shiro.ini. Since the support > for its remove, how would I convert the following. > [main] > credentialsMatcher=org.apache.shiro.authc.credential.HashedCredentialsMatcher > credentialsMatcher.storedCredentialsHexEncoded=false > credentialsMatcher.hashIterations=1024 > credentialsMatcher.hashAlgorithmName=SHA-512 > jdbcSaltedRealm=org.apache.shiro.realm.JdbcSaltedRealm > jdbcSaltedRealm.credentialsMatcher=$credentialsMatcher > > To using new > > "Tapestry-style all-in-Java configuration" > > Thanks > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tynamo-0-4-0-security-How-to-create-custom-credential-matcher-tp4490139p4490139.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org