アプリケーションでの認証に LDAP を使用しています。(class=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== ハッシュ化され ていないパスワードを取得するにはどうすればよいですか?