jet.server.api.admin
Interface AdvancedPasswordRule


public interface AdvancedPasswordRule

Advanced Password Rule interface. Used to validate password.


Method Summary
 boolean validate(java.lang.String orgName, java.lang.String userName, java.lang.String oldPassword, java.lang.String newPassword)
          Validate password.
 

Method Detail

validate

boolean validate(java.lang.String orgName,
                 java.lang.String userName,
                 java.lang.String oldPassword,
                 java.lang.String newPassword)
                 throws InvalidPasswordException
Validate password.

Parameters:
orgName - this is organization name for multiple tenancies. if multiple tenancies is disabled, this argument is null.
userName - this is user login account.
oldPassword - this is old password for modify user password. this argument is null to add user.
newPassword - this is password, this password will be verified.
Returns:
true means that the password match specified rule. false means that the advanced password rule is disabled.
Throws:
InvalidPasswordException - thrown InvalidPasswordException if password don't match specified rule.