hi,
I am using the JDBCRealm , but the password of user is not pure text, but
stored in base64 encoding
Followd the doc, seems I have to set the digest , but I don't know which
digest and digestEncoding should I use?
that's what I do now
------------------
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/hibernate?user=root&password=root"
userTable="users" userNameCol="USERNAME" userCredCol="PASSWORD"
userRoleTable="granted_authorities" roleNameCol="AUTHORITY"/>
------------------
------------------
<security-constraint>
<web-resource-collection>
<web-resource-name>
Entire Application
</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Login Authority</realm-name>
</login-config>
<security-role>
<role-name>Admin</role-name>
</security-role>
-------------------
Regard,
--
-------------------------
Lin Chun
Marie von
Ebner-Eschenbach<http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac.html>
- "Even a stopped clock is right twice a day."