CAS Authentication Credentials
#cas.authn.accept.users=casuser::Mellon
查询账号密码SQL,必须包含密码字段
cas.authn.jdbc.query[0].sql=select * from ca_user where username=?
指定上面的SQL查询字段名(必须)
cas.authn.jdbc.query[0].fieldPassword=password
#默认加密策略,通过encodingAlgorithm来指定算法,默认NONE不加密
cas.authn.jdbc.query[0].passwordEncoder.type=DEFAULT
cas.authn.jdbc.query[0].passwordEncoder.characterEncoding=UTF-8
cas.authn.jdbc.query[0].passwordEncoder.encodingAlgorithm=MD5
cas.authn.jdbc.query[0].url=jdbc:mysql://localhost:33062/cs_das?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
cas.authn.jdbc.query[0].user=root
cas.authn.jdbc.query[0].password=123456
cas.authn.jdbc.query[0].fieldPassword=password
cas.authn.jdbc.query[0].driverClass=com.mysql.cj.jdbc.Driver
cas.authn.jdbc.query[0].dialect=org.hibernate.dialect.MySQLDialect
Md5Hash hash1 = new Md5Hash("789");
System.out.println("789加密后MD5的密码:" + hash1.toHex());