Spring security 自定义密码编码器

Spring security 自定义密码编码器,spring-security,Spring Security,我需要创建一个自定义密码编码器。我已完成以下任务: applicationContext Security.xml <authentication-manager alias="authenticationManager"> <authentication-provider> <password-encoder ref="AppPasswordEncoder" /> <jdbc-user-service data

我需要创建一个自定义密码编码器。我已完成以下任务:

applicationContext Security.xml

<authentication-manager alias="authenticationManager">
    <authentication-provider>
        <password-encoder ref="AppPasswordEncoder" /> 
        <jdbc-user-service data-source-ref="dataSource" authorities-by-username-query="select username,password from username where username=?"/>
    </authentication-provider>
    <beans:bean class="com.app.security.MyPasswordEncoder" id="AppPasswordEncoder"/>
</authentication-manager>
密码编码的几个步骤:

ISO-8859-1
md5
base64

我的下一步是什么?

如果您想使用md5、base64等,为什么要使用自定义编码器?是的,我必须经历这三个步骤:首先在ISO-8859-1中编码,然后在md5中编码,最后在base64中编码。
ISO-8859-1
md5
base64