Klasse MultiFactorApplicationUtil

java.lang.Object
de.uplanet.lucy.server.businesslogic.rtappservices.action.MultiFactorApplicationUtil

@Scriptable public class MultiFactorApplicationUtil extends Object
Multi factor application utility class.
  • Felddetails

  • Konstruktordetails

    • MultiFactorApplicationUtil

      public MultiFactorApplicationUtil(IProcessingContext p_ctx, de.uplanet.jdbc.JdbcConnection p_conn)
      Constructor.
      Parameter:
      p_ctx - The processing context.
      p_conn - The JDBC connection.
  • Methodendetails

    • initializeMain

      public void initializeMain()
      Retrieves the status of the MFA (Multi-Factor Authentication) for the current user and the server configurations. The states are stored in the shared state.

      Shared state keys:
      • totpPortalActive (boolean): The status of the TOTP (Time-based One-Time Password) for the server.
      • smsPortalActive (boolean): The status of the SMS for the server.
      • voicePortalActive (boolean): The status of the voice for the server.
      • totpUserActive (boolean): The status of the TOTP for the current user.
      • smsUserActive (boolean): The status of the SMS for the current user.
      • voiceUserActive (boolean): The status of the voice for the current user.
      throws an AccessControlException if the user is not authenticated.
    • initialize

      public void initialize() throws org.json.simple.parser.ParseException
      Initializes the shared state for all wizard pages. All initializes from initalizeMain are used.
      Löst aus:
      org.json.simple.parser.ParseException
    • validate

      public String validate(GroovyJSONObject g_json)
    • save

      public String save(GroovyJSONObject p_json)
    • delete

      public String delete(GroovyJSONObject p_json)
    • getDefaultCountry

      public static String getDefaultCountry(IUser p_user)