Class AuthnSMSCounter


  • @Component
    public class AuthnSMSCounter
    extends java.lang.Object
    Authn sms limit counter. Used by SMSVerificator to check how many authn sms have been sent to user
    Author:
    P.Piernik
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthnSMSCounter​(pl.edu.icm.unity.engine.api.utils.CacheProvider cacheProvider)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getValue​(pl.edu.icm.unity.engine.api.authn.AuthenticationSubject username)  
      void incValue​(pl.edu.icm.unity.engine.api.authn.AuthenticationSubject username)  
      boolean reset​(pl.edu.icm.unity.engine.api.authn.AuthenticationSubject username)  
      • Methods inherited from class java.lang.Object

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

      • AuthnSMSCounter

        @Autowired
        public AuthnSMSCounter​(pl.edu.icm.unity.engine.api.utils.CacheProvider cacheProvider)
    • Method Detail

      • incValue

        public void incValue​(pl.edu.icm.unity.engine.api.authn.AuthenticationSubject username)
      • reset

        public boolean reset​(pl.edu.icm.unity.engine.api.authn.AuthenticationSubject username)
      • getValue

        public int getValue​(pl.edu.icm.unity.engine.api.authn.AuthenticationSubject username)