标签:style class blog code java http
配置内容同一样,只是增加一些配置。
因为cas已经默认就支持MD5加密验证,所以只是修改一下配置就可以了。
<bean id="primaryAuthenticationHandler" class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler">
<property name="dataSource" ref="dataSource" />
<property name="sql" value="select password from table_users where username = ?" />
</bean>
增加一条内容
<bean id="primaryAuthenticationHandler" class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler">
<property name="dataSource" ref="dataSource" />
<property name="sql" value="select password from table_users where username = ?" />
<property name="passwordEncoder" ref="passwordEncoder" />
</bean>
<bean id="primaryAuthenticationHandler" class="org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler"> <property name="dataSource" ref="dataSource" /> <property name="sql" value="select password from table_users where username = ?" /> <property name="passwordEncoder" ref="passwordEncoder" /> </bean> <bean id="passwordEncoder" class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder" p:characterEncoding="UTF-8" > <constructor-arg index="0" value="MD5" /> </bean>
CAS 4.0.0RC 配置MD5验证功能,布布扣,bubuko.com
标签:style class blog code java http
原文地址:http://www.cnblogs.com/nugao/p/3784377.html