class CredentialsServiceImpl implements CredentialsService {

	@Override
	public void validateCredentials(String password, String repeatPassword, MerchantStore store, Language language)
			throws CredentialsException {<FILL_FUNCTION_BODY>}

	@Override
	public String generatePassword(MerchantStore store, Language language) throws CredentialsException {
		// TODO Auto-generated method stub
		return null;
	}

}

		
		if(StringUtils.isBlank(password) || StringUtils.isBlank(repeatPassword) ) {
			throw new CredentialsException("Empty password not supported");
		}
		
		/**
		 * validate - both password match
		 */
		if(!password.equals(repeatPassword)) {
			throw new CredentialsException("Password don't match");
		}
		
		//create your own rules
		PasswordValidator passwordValidator = new PasswordValidator(
				  new CharacterRule(EnglishCharacterData.Digit, 1),//at least 1 digit
				  new CharacterRule(EnglishCharacterData.Special, 1),// at least 1 special character
				  new LengthRule(8, 12)//8 to 12 characters
		);
		
	      PasswordData passwordData = new PasswordData(password);        
	      RuleResult result = passwordValidator.validate(passwordData);
	        
	      if(!result.isValid()){
	         throw new CredentialsException("Password validation failed [" + passwordValidator.getMessages(result) + "]");
	      }

	
<no_super_class>