Class WarlockDangerServiceImpl

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void block(Enum<out Object> authType, String username, int seconds) block this login
      int check(Enum<out Object> authType, String username) check blocking second
      void allow(Enum<out Object> authType, String username) allow this login
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WarlockDangerServiceImpl

        WarlockDangerServiceImpl(int size, int ttl)
    • Method Detail

      • block

         void block(Enum<out Object> authType, String username, int seconds)

        block this login

        Parameters:
        authType - authn type
        username - username
        seconds - username
      • check

         int check(Enum<out Object> authType, String username)

        check blocking second

        Parameters:
        authType - authn type
        username - username
        Returns:

        zero or negative mean allow

      • allow

         void allow(Enum<out Object> authType, String username)

        allow this login

        Parameters:
        authType - authn type
        username - username