Class NativeDevice
- java.lang.Object
- 
- com.inductiveautomation.perspective.gateway.session.NativeDevice
 
- 
 public class NativeDevice extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringSESSION_CHALLENGE_ATTRIBUTE
 - 
Method SummaryAll 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_ATTRIBUTEpublic static final java.lang.String SESSION_CHALLENGE_ATTRIBUTE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isValidMobilepublic boolean isValidMobile() 
 - 
isValidWorkstationpublic boolean isValidWorkstation() 
 - 
updateChallengepublic 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
 
 - 
forDesignerpublic static NativeDevice forDesigner() 
 - 
frompublic static NativeDevice from(javax.servlet.http.HttpServletRequest request) 
 
- 
 
-