Class SecurityUtilities
- java.lang.Object
- 
- com.inductiveautomation.factorypmi.application.script.builtin.SecurityUtilities
 
- 
 public class SecurityUtilities extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description SecurityUtilities(FPMIApp app)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WindowStateCollection_tempCloseAll()void_tempReOpen(WindowStateCollection state)voidexit()Deprecated.Moved to SystemUtilitiesbooleanisScreenLocked()voidlockScreen()voidlockScreen(boolean obscure)static org.python.core.PyTuplelogin(java.lang.String username, java.lang.String password)Issues a login call.voidlogout()booleanswitchUser(org.python.core.PyObject[] values, java.lang.String[] keywords)voidunlockScreen()
 
- 
- 
- 
Constructor Detail- 
SecurityUtilitiespublic SecurityUtilities(FPMIApp app) 
 
- 
 - 
Method Detail- 
loginpublic static org.python.core.PyTuple login(java.lang.String username, java.lang.String password) throws GatewayExceptionIssues 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
 
 - 
switchUserpublic boolean switchUser(org.python.core.PyObject[] values, java.lang.String[] keywords)
 - 
_tempCloseAllpublic WindowStateCollection _tempCloseAll() 
 - 
_tempReOpenpublic void _tempReOpen(WindowStateCollection state) 
 - 
logoutpublic void logout() 
 - 
lockScreenpublic void lockScreen() 
 - 
lockScreenpublic void lockScreen(boolean obscure) 
 - 
unlockScreenpublic void unlockScreen() 
 - 
isScreenLockedpublic boolean isScreenLocked() 
 - 
exit@Deprecated public void exit() Deprecated.Moved to SystemUtilitiesExits the FPMI Client.
 
- 
 
-