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

Reply via email to