java.lang.Object
com.inductiveautomation.factorypmi.application.script.builtin.SecurityUtilities

public class SecurityUtilities extends Object
  • Constructor Details

    • SecurityUtilities

      public SecurityUtilities(FPMIApp app)
  • Method Details

    • login

      public static org.python.core.PyTuple login(String username, String password) throws GatewayException
      Issues a login call. If successful, the current session's credentials are switched and the user's roles are returned. If the login fails, an exception is thrown.
      Throws:
      GatewayException
    • switchUser

      public boolean switchUser(org.python.core.PyObject[] values, String[] keywords)
    • _tempCloseAll

      public WindowStateCollection _tempCloseAll()
    • _tempReOpen

      public void _tempReOpen(WindowStateCollection state)
    • logout

      public void logout()
    • lockScreen

      public void lockScreen()
    • lockScreen

      public void lockScreen(boolean obscure)
    • unlockScreen

      public void unlockScreen()
    • isScreenLocked

      public boolean isScreenLocked()
    • exit

      @Deprecated public void exit()
      Deprecated.
      Moved to SystemUtilities
      Exits the FPMI Client.