[ 
https://issues.apache.org/jira/browse/SHIRO-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800871#action_12800871
 ] 

Philippe Laflamme commented on SHIRO-125:
-----------------------------------------

Great!

Not really important, but how about using "this" instead of "iniRealm"? Sounds 
more OO and "this" is a common reserved word.

[main]
...
credentialsMatcher = org.apache.shiro.authc.credential.Sha256CredentialsMatcher 
this.credentialsMatcher=$credentialsMatcher
...
[users]
...

> Support overrding the credentialsMatcher for the implicit IniRealm
> ------------------------------------------------------------------
>
>                 Key: SHIRO-125
>                 URL: https://issues.apache.org/jira/browse/SHIRO-125
>             Project: Shiro
>          Issue Type: Improvement
>          Components: Configuration, Realms 
>            Reporter: Philippe Laflamme
>             Fix For: 1.0
>
>
> When using the implicit IniRealm, it would be useful to override the 
> credentialsMatcher to support, non-plaintext passwords in the [users] section.
> Example shiro.ini:
> ---
> [main]
> # The [users] section will contain SHA256 hashed passwords
> credentialsMatcher=org.apache.shiro.authc.credential.Sha256CredentialsMatcher
> [users]
> # Hex value of SHA256 hashed password
> aUser=28eeeb5e16f38c67dfcc73733ee3649f9b0adcc2a6cfc957d40814348459ee7c
> ---

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to