0

我在我的应用程序中使用 LDAP 进行身份验证。(类=org.springframework.security.ldap.authentication.LdapAuthenticationProvider)

我需要在应用程序中获取登录名和密码,然后尝试以下代码:

UserDetails user = (UserDetails)  
SecurityContextHolder.getContext().getAuthentication().getPrincipal();

request.setUser("aartemenko");
request.clearPeriod();
logger.debug("LOGIN: {} PASSWORD{}", user.getUsername(), user.getPassword().to_string);

但是像这样的密码{MD5}7XEGS32KbJ0bpCMj9pNdqg== 我如何获得未散列的密码?

4

0 回答 0