Class OTPConfig

java.lang.Object
io.jans.casa.plugins.authnmethod.conf.QRConfig
io.jans.casa.plugins.authnmethod.conf.OTPConfig

public class OTPConfig extends QRConfig
POJO storing values needed for HOTP/TOTP. Static methods of this class parse information belonging to the OTP custom script to be able to get an instance of this class
Author:
jgomer
  • Constructor Details

    • OTPConfig

      public OTPConfig()
  • Method Details

    • getIssuer

      public String getIssuer()
    • getHotp

      public HOTPConfig getHotp()
    • getTotp

      public TOTPConfig getTotp()
    • setIssuer

      public void setIssuer(String issuer)
    • setHotp

      public void setHotp(HOTPConfig hotp)
    • setTotp

      public void setTotp(TOTPConfig totp)
    • get

      public static OTPConfig get(org.json.JSONObject propsMap)
      Creates an OTPConfig object to hold all properties required for OTP key generation and QR code display
      Parameters:
      propsMap - A map of string-ed key/value pairs with the source of data for this operation
      Returns:
      null if an error or inconsistency is found while inspecting the configuration properties of the custom script. Otherwise returns an OTPConfig object