Class SecurityUtilities


  • public class SecurityUtilities
    extends java.lang.Object
    • Constructor Detail

      • SecurityUtilities

        public SecurityUtilities​(FPMIApp app)
    • Method Detail

      • getUsername

        public static java.lang.String getUsername()
      • getRoles

        public static org.python.core.PyTuple getRoles()
      • login

        public static org.python.core.PyTuple login​(java.lang.String username,
                                                    java.lang.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,
                                  java.lang.String[] keywords)
      • 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.