Class DeviceCode

    • Method Detail

      • getCode

        public String getCode()
        Code used in the authorization poll
      • setCode

        public void setCode​(String code)
        Code used in the authorization poll
      • setUserCode

        public void setUserCode​(String userCode)
        String to be shown to the user
      • setVerificationUri

        public void setVerificationUri​(String verificationUri)
        Url the user should call.

        Here he should add the user code

      • getExpiresIn

        public Integer getExpiresIn()
        The code expires in these seconds.

        You should cancel the login flow after that time if you do not receive an access token

      • setExpiresIn

        public void setExpiresIn​(Integer expiresIn)
        The code expires in these seconds.

        You should cancel the login flow after that time if you do not receive an access token

      • getInterval

        public Integer getInterval()
        Your device should poll the Device Login API every interval seconds to see if the authorization has been successful
      • setInterval

        public void setInterval​(Integer interval)
        Your device should poll the Device Login API every interval seconds to see if the authorization has been successful