Class NativeDevice
- java.lang.Object
-
- com.inductiveautomation.perspective.gateway.session.NativeDevice
-
public class NativeDevice extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSESSION_CHALLENGE_ATTRIBUTE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NativeDeviceforDesigner()static NativeDevicefrom(javax.servlet.http.HttpServletRequest request)booleanisValidMobile()booleanisValidWorkstation()voidupdateChallenge(NativeDevice device)After Gateway reset, a new challenge is generated for the mobile session.
-
-
-
Field Detail
-
SESSION_CHALLENGE_ATTRIBUTE
public static final java.lang.String SESSION_CHALLENGE_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValidMobile
public boolean isValidMobile()
-
isValidWorkstation
public boolean isValidWorkstation()
-
updateChallenge
public void updateChallenge(NativeDevice device)
After Gateway reset, a new challenge is generated for the mobile session. Allow setting a new challenge if one hasn't already been set.- Parameters:
device-NativeDevicefrom current request
-
forDesigner
public static NativeDevice forDesigner()
-
from
public static NativeDevice from(javax.servlet.http.HttpServletRequest request)
-
-