Class SecurityUtilities
- java.lang.Object
 - 
- com.inductiveautomation.factorypmi.application.script.builtin.SecurityUtilities
 
 
- 
public class SecurityUtilities extends java.lang.Object 
- 
- 
Constructor Summary
Constructors Constructor Description SecurityUtilities(FPMIApp app) 
- 
Method Summary
All 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
- 
SecurityUtilities
public SecurityUtilities(FPMIApp app)
 
 - 
 
- 
Method Detail
- 
login
public 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
 
- 
switchUser
public boolean switchUser(org.python.core.PyObject[] values, java.lang.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 SystemUtilitiesExits the FPMI Client. 
 - 
 
 -