code: def validate_locked(self, authc_token, failed_attempts):
          
          if self.locking_limit and len(failed_attempts) > self.locking_limit:
              msg = ('Authentication attempts breached threshold.  Account'
                     ' is now locked for: ' + str(authc_token.identifier))
              self.locking_realm.lock_account(authc_token.identifier)
              self.notify_event(authc_token.identifier, 'AUTHENTICATION.ACCOUNT_LOCKED')
              raise LockedAccountException(msg)
docs: :param failed_attempts:  the failed attempts for this type of credential