Package org.gluu.oxauth.authorize.ws.rs
Class DeviceAuthorizationAction
java.lang.Object
org.gluu.oxauth.authorize.ws.rs.DeviceAuthorizationAction
- All Implemented Interfaces:
Serializable
Action used to process all requests related to device authorization.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getError()getState()voidReset data in session or create a new one whether there is no session.booleanChecks if page should be shown in complete verification mode, it means that the user code has been shared by the url.booleanChecks if the authorization is complete and page should show confirmation to the end-user.booleanChecks if page should show error messages.booleanChecks if page is loaded for a new device request.voidMethod used by the view to load all query params and set the page state.voidProcesses user code introduced or loaded in the veritification page and redirects whether user code is correct or return an error if there is something wrong.voidvoidsetDescriptionMsg(String descriptionMsg) voidvoidsetErrorDescription(String errorDescription) voidsetSessionId(String sessionId) voidsetSessionState(String sessionState) voidvoidsetTitleMsg(String titleMsg) voidsetUserCode(String userCode) voidsetUserCodePart1(String userCodePart1) voidsetUserCodePart2(String userCodePart2)
-
Constructor Details
-
DeviceAuthorizationAction
public DeviceAuthorizationAction()
-
-
Method Details
-
pageLoaded
public void pageLoaded()Method used by the view to load all query params and set the page state. -
initializeSession
public void initializeSession()Reset data in session or create a new one whether there is no session. -
processUserCodeVerification
public void processUserCodeVerification()Processes user code introduced or loaded in the veritification page and redirects whether user code is correct or return an error if there is something wrong. -
isNewRequest
public boolean isNewRequest()Checks if page is loaded for a new device request. -
isErrorResponse
public boolean isErrorResponse()Checks if page should show error messages. -
isCompleteVerificationMode
public boolean isCompleteVerificationMode()Checks if page should be shown in complete verification mode, it means that the user code has been shared by the url. -
isDeviceAuthnCompleted
public boolean isDeviceAuthnCompleted()Checks if the authorization is complete and page should show confirmation to the end-user. -
getUserCodePart1
-
setUserCodePart1
-
getUserCodePart2
-
setUserCodePart2
-
getCode
-
setCode
-
getSessionId
-
setSessionId
-
getState
-
setState
-
getSessionState
-
setSessionState
-
getError
-
setError
-
getErrorDescription
-
setErrorDescription
-
getUserCode
-
setUserCode
-
getTitleMsg
-
setTitleMsg
-
getDescriptionMsg
-
setDescriptionMsg
-