fix tokenmanager bug

This commit is contained in:
fanqq 2015-05-19 16:01:22 +08:00
parent 4e07fbd31c
commit 84dd4200a3
2 changed files with 6 additions and 1 deletions

View file

@ -71,7 +71,8 @@ public class TokenManager {
private static String encryptBASE64(byte[] key) throws Exception {
return (new BASE64Encoder()).encodeBuffer(key);
String encode = (new BASE64Encoder()).encodeBuffer(key);
return encode.replace('\n',' ');
}
private static Key toKey(byte[] key) throws Exception {

View file

@ -36,6 +36,10 @@
<constructor-arg type="java.lang.Class" value="com.ctrip.zeus.dal.core.ArchiveSlbDao"/>
</bean>
<bean id="authPrivateKeyDao" factory-bean="daoFactory" factory-method="getDao">
<constructor-arg type="java.lang.Class" value="com.ctrip.zeus.dal.core.AuthPrivateKeyDao"/>
</bean>
<bean id="authResourceDao" factory-bean="daoFactory" factory-method="getDao">
<constructor-arg type="java.lang.Class" value="com.ctrip.zeus.dal.core.AuthResourceDao"/>
</bean>