Class DeviceAuthorizationAction

  • All Implemented Interfaces:
    Serializable

    @Named
    @RequestScoped
    public class DeviceAuthorizationAction
    extends Object
    implements Serializable
    Action used to process all requests related to device authorization.
    See Also:
    Serialized Form
    • Constructor Detail

      • DeviceAuthorizationAction

        public DeviceAuthorizationAction()
    • Method Detail

      • 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.
      • initializeOrCreateSession

        public io.jans.as.common.model.session.SessionId initializeOrCreateSession()
      • 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

        public String getUserCodePart1()
      • setUserCodePart1

        public void setUserCodePart1​(String userCodePart1)
      • getUserCodePart2

        public String getUserCodePart2()
      • setUserCodePart2

        public void setUserCodePart2​(String userCodePart2)
      • getCode

        public String getCode()
      • setCode

        public void setCode​(String code)
      • getSessionId

        public String getSessionId()
      • setSessionId

        public void setSessionId​(String sessionId)
      • getState

        public String getState()
      • setState

        public void setState​(String state)
      • getSessionState

        public String getSessionState()
      • setSessionState

        public void setSessionState​(String sessionState)
      • getError

        public String getError()
      • setError

        public void setError​(String error)
      • getErrorDescription

        public String getErrorDescription()
      • setErrorDescription

        public void setErrorDescription​(String errorDescription)
      • getUserCode

        public String getUserCode()
      • setUserCode

        public void setUserCode​(String userCode)
      • getTitleMsg

        public String getTitleMsg()
      • setTitleMsg

        public void setTitleMsg​(String titleMsg)
      • getDescriptionMsg

        public String getDescriptionMsg()
      • setDescriptionMsg

        public void setDescriptionMsg​(String descriptionMsg)