Class OTPConfig
java.lang.Object
io.jans.casa.plugins.authnmethod.conf.QRConfig
io.jans.casa.plugins.authnmethod.conf.OTPConfig
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OTPConfigget(org.json.JSONObject propsMap) Creates an OTPConfig object to hold all properties required for OTP key generation and QR code displaygetHotp()getTotp()voidsetHotp(HOTPConfig hotp) voidvoidsetTotp(TOTPConfig totp) Methods inherited from class io.jans.casa.plugins.authnmethod.conf.QRConfig
getFormattedQROptions, getFormattedQROptions, getLabel, getQrMSize, getQrSize, populate, setLabel, setQrMSize, setQrSize
-
Constructor Details
-
OTPConfig
public OTPConfig()
-
-
Method Details
-
getIssuer
-
getHotp
-
getTotp
-
setIssuer
-
setHotp
-
setTotp
-
get
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
-