Define available @UserPassword hash constants as an enumeration
---------------------------------------------------------------
Key: JBSEAM-3408
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3408
Project: Seam
Issue Type: Feature Request
Components: Security
Affects Versions: 2.1.0.BETA1
Reporter: Jacob Orshalick
Priority: Optional
As specified in the documentation, the available hash algorithm string values are the
strings: md5, sha. There is also a value of "none" which is not specified in
the documentation but avoids hashing the password all-together. It would be nice to wrap
these strings with an enumeration that holds the necessary String values for a bit more
type-safety when using the annotation. This would also help to make the options it a bit
more clear from a user perspective.
The annotation could then be defined as:
@Target({METHOD,FIELD})
@Documented
@Retention(RUNTIME)
@Inherited
public @interface UserPassword
{
HashAlgorithm hash() default HashAlgorithm.MD5;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira