本文整理汇总了Java中org.acegisecurity.providers.encoding.PasswordEncoder类的典型用法代码示例。如果您正苦于以下问题:Java PasswordEncoder类的具体用法?Java PasswordEncoder怎么用?Java PasswordEncoder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PasswordEncoder类属于org.acegisecurity.providers.encoding包,在下文中一共展示了PasswordEncoder类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setEncoder
import org.acegisecurity.providers.encoding.PasswordEncoder; //导入依赖的package包/类
/**
* @param encoder set the password encoder.
*/
public void setEncoder(PasswordEncoder encoder) {
this.encoder = encoder;
}
示例2: setPasswordEncoder
import org.acegisecurity.providers.encoding.PasswordEncoder; //导入依赖的package包/类
/**
* @param passwordEncoder the password encoder.
*/
public void setPasswordEncoder(PasswordEncoder passwordEncoder) {
this.passwordEncoder = passwordEncoder;
}
示例3: setEncoder
import org.acegisecurity.providers.encoding.PasswordEncoder; //导入依赖的package包/类
/**
* @param encoder the encoder to set
*/
public void setEncoder(PasswordEncoder encoder) {
this.encoder = encoder;
}
示例4: testSetPasswordEncoder
import org.acegisecurity.providers.encoding.PasswordEncoder; //导入依赖的package包/类
@Test
public final void testSetPasswordEncoder() {
PasswordEncoder passwordEncoder = new ShaPasswordEncoder();
testInstance.setPasswordEncoder(passwordEncoder);
}
示例5: testSetEncoder
import org.acegisecurity.providers.encoding.PasswordEncoder; //导入依赖的package包/类
@Test
public final void testSetEncoder() {
PasswordEncoder passwordEncoder = new ShaPasswordEncoder();
testInstance.setEncoder(passwordEncoder);
}