我们开发了一个与filenetp8一起工作的应用程序,我们通过api本身建立连接。这工作正常。
我们的缺点是,他们要求我们在基于spring的应用程序加载的属性文件中加密密码,以避免安全问题。是否有任何方法可以加密密码,并且在建立连接时不会因此而出错?
做测试时,我在一个在线网站上对密码进行了加密,测试时出现的错误表明它没有经过身份验证。如果你能告诉我是否有一个算法被同一个平台用来加密密码,这可以从任何第三方应用程序解释,我将不胜感激。
private Connection getConnection(String uri) {
LOGGER.info("Connecting with the user " + filenetConnectionProperties.getUSERNAME());
System.setProperty(filenetConnectionProperties.getKEY_SYSTEM_PROPERTY(), filenetConnectionProperties.getKEY_SYSTEM_PROPERTY_VALUE());
Connection connection = Factory.Connection.getConnection(uri);
Subject subject = UserContext.createSubject(connection, filenetConnectionProperties.getUSERNAME(),
filenetConnectionProperties.getPASSWORD(), filenetConnectionProperties.getCONNECTION_CLASS_FILENET());
uc = UserContext.get();
uc.pushSubject(subject);
return connection;
}
谢谢您
暂无答案!
目前还没有任何答案,快来回答吧!