def validate_locked(self, authc_token, failed_attempts):
if self.locking_limit and len(failed_attempts) > self.locking_limit:<EOL><INDENT>msg = ('<STR_LIT>'<EOL>'<STR_LIT>' + str(authc_token.identifier))<EOL>self.locking_realm.lock_account(authc_token.identifier)<EOL>self.notify_event(authc_token.identifier, '<STR_LIT>')<EOL>raise LockedAccountException(msg)<EOL><DEDENT>
:param failed_attempts:  the failed attempts for this type of credential