mirror of
https://github.com/ctripcorp/zeus.git
synced 2024-09-21 16:16:09 +08:00
fix tokenmanager bug
This commit is contained in:
parent
4e07fbd31c
commit
84dd4200a3
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue