Class OTPService

java.lang.Object
io.jans.casa.plugins.authnmethod.service.OTPService

@Named @ApplicationScoped public class OTPService extends Object
  • Constructor Details

    • OTPService

      public OTPService()
  • Method Details

    • getConf

      public OTPConfig getConf()
    • reloadConfiguration

      public void reloadConfiguration()
    • getDevicesTotal

      public int getDevicesTotal(String userId)
    • getDevices

      public List<OTPDevice> getDevices(String userId)
    • updateDevicesAdd

      public boolean updateDevicesAdd(String userId, List<OTPDevice> devices, OTPDevice newDevice)
    • addDevice

      public boolean addDevice(String userId, OTPDevice newDevice)
    • updateMovingFactor

      public void updateMovingFactor(String userId, OTPDevice device, int movingFactor)
    • getAlgorithmService

      public IOTPAlgorithm getAlgorithmService(OTPType type)
    • getPropertyValue

      public String getPropertyValue(String key)