Class DefaultPasswordRule
- java.lang.Object
-
- org.apache.syncope.core.spring.policy.DefaultPasswordRule
-
- All Implemented Interfaces:
PasswordRule
public class DefaultPasswordRule extends Object implements PasswordRule
-
-
Field Summary
Fields Modifier and Type Field Description protected DefaultPasswordRuleConf
conf
protected static Encryptor
ENCRYPTOR
protected static Logger
LOG
protected org.passay.PasswordValidator
passwordValidator
-
Constructor Summary
Constructors Constructor Description DefaultPasswordRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<org.passay.Rule>
conf2Rules(DefaultPasswordRuleConf conf)
void
enforce(String username, String clearPassword)
protected void
enforce(String clear, String username, Set<String> wordsNotPermitted)
void
enforce(LinkedAccount account)
void
enforce(User user, String clearPassword)
PasswordRuleConf
getConf()
void
setConf(PasswordRuleConf conf)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
ENCRYPTOR
protected static final Encryptor ENCRYPTOR
-
conf
protected DefaultPasswordRuleConf conf
-
passwordValidator
protected org.passay.PasswordValidator passwordValidator
-
-
Method Detail
-
conf2Rules
public static List<org.passay.Rule> conf2Rules(DefaultPasswordRuleConf conf)
-
getConf
public PasswordRuleConf getConf()
- Specified by:
getConf
in interfacePasswordRule
-
setConf
public void setConf(PasswordRuleConf conf)
- Specified by:
setConf
in interfacePasswordRule
-
enforce
public void enforce(String username, String clearPassword)
- Specified by:
enforce
in interfacePasswordRule
-
enforce
@Transactional(readOnly=true) public void enforce(User user, String clearPassword)
- Specified by:
enforce
in interfacePasswordRule
-
enforce
@Transactional(readOnly=true) public void enforce(LinkedAccount account)
- Specified by:
enforce
in interfacePasswordRule
-
-