|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.password.service.DefaultPasswordService
@Service public class DefaultPasswordService
User: Yohann Chastagnier Date: 07/01/13
Field Summary | |
---|---|
protected static int |
nbMatchingCombinedRules
|
protected static ResourceLocator |
settings
|
Constructor Summary | |
---|---|
DefaultPasswordService()
|
Method Summary | |
---|---|
PasswordCheck |
check(String password)
Checks server required and combined password rule on the given password. |
String |
generate()
Generates a random password from existing rules. |
Collection<PasswordRule> |
getCombinedRules()
Gets server combined password rules. |
String |
getExtraRuleMessage(String language)
Gets additional rule message. |
Collection<PasswordRule> |
getRequiredRules()
Gets server required password rules. |
PasswordRule |
getRule(PasswordRuleType passwordRuleType)
Gets a server password rule from its type. |
Collection<PasswordRule> |
getRules()
Gets server password rules. |
protected void |
loadRules()
Loading just after the server is started all activated server password rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static ResourceLocator settings
protected static int nbMatchingCombinedRules
Constructor Detail |
---|
public DefaultPasswordService()
Method Detail |
---|
@PostConstruct protected void loadRules()
public PasswordRule getRule(PasswordRuleType passwordRuleType)
PasswordService
getRule
in interface PasswordService
public Collection<PasswordRule> getRules()
PasswordService
getRules
in interface PasswordService
public Collection<PasswordRule> getRequiredRules()
PasswordService
getRequiredRules
in interface PasswordService
public Collection<PasswordRule> getCombinedRules()
PasswordService
getCombinedRules
in interface PasswordService
public PasswordCheck check(String password)
PasswordService
check
in interface PasswordService
public String generate()
PasswordService
generate
in interface PasswordService
public String getExtraRuleMessage(String language)
PasswordService
getExtraRuleMessage
in interface PasswordService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |