Mark, On 9/16/14 3:39 PM, Mark Thomas wrote: > Updated patch: > http://people.apache.org/~markt/patches/2014-09-16-bug56403-tc8-v2.patch
Looks good, but its missing a configuration for the digester to actually read the configuration and set-up the CredentialHandler objects at runtime. Existing MessageDigest-based configs will work, but explicit class references won't. Speaking of which, I'd like to be able to nest CredentialHandler instances. The use case is when switching from one type of password-derivation method to another. We have done this at $work twice and being able to handle more than one kind of valid credential in the database is essential. Given that we are giving better options to users than standard single-pass MessageDigest password-mutators, we should help them migrate. The only way to do that would be something like CombinedCredentialHandler analogous to the CombinedRealm: you will accept either MessageDigestCredentiaHandler{SHA1} /or/, say, PBKDF, bcrypt, etc., by checking one CredentialHandler and then the second (or third?) if the first one fails. Use of a CombinedCredentialHandler might result in a lot of spurious warnings in the log about invalid credentials. Maybe the CombinedCredentialHandler could tell the individual child CredentialHandlers that they should not log invalid credentials? I'd like to get some other opinions on the public mutate() interface. I think we might not be able to convince each other ;) -chris
signature.asc
Description: OpenPGP digital signature