You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by Thilo-Alexander Ginkel <th...@ginkel.com> on 2012/05/30 13:15:12 UTC
HashedCredentialsMatcher Guice trouble
Hi there,
I am currently trying to set up a HashedCredentialsMatcher through
Guice (from within a ShiroWebModule) as documented at [1]:
bind(CredentialsMatcher.class).to(HashedCredentialsMatcher.class);
bind(HashedCredentialsMatcher.class);
bindConstant().annotatedWith(Names.named("shiro.hashAlgorithmName")).to(Sha256Hash.ALGORITHM_NAME);
bindConstant().annotatedWith(Names.named("shiro.hashIterations")).to(1024);
While the first line of code is effective, i.e., a
HashedCredentialsMatcher is used instead of a
SimpleCredentialsMatcher, the constant bindings seem to have no effect
at all (the HashedCredentialsMatcher attempts to use the non-existing
"SHA-" hash algorithm).
I see that the BeanTypeListener.hear is called for the
HashedCredentialsMatcher, but the returned MembersInjector never is.
I am using Shiro 1.2.0 with Guice 3.0.
Any ideas?
Thanks,
Thilo
[1] http://shiro.apache.org/guice.html
Re: HashedCredentialsMatcher Guice trouble
Posted by Thilo-Alexander Ginkel <th...@ginkel.com>.
On Wed, May 30, 2012 at 1:15 PM, Thilo-Alexander Ginkel
<th...@ginkel.com> wrote:
> I am currently trying to set up a HashedCredentialsMatcher through
> Guice (from within a ShiroWebModule) as documented at [1]:
Please disregard my message. PEBCAK. ;-)
Regards,
Thilo