Class DeviceAuthorization


  • public class DeviceAuthorization
    extends java.lang.Object
    Device Authorization Response
    See Also:
    rfc8628
    • Field Detail

      • deviceCode

        private final java.lang.String deviceCode
        device_code REQUIRED. The device verification code.
      • userCode

        private final java.lang.String userCode
        user_code REQUIRED. The end-user verification code.
      • verificationUri

        private final java.lang.String verificationUri
        verification_uri REQUIRED. The end-user verification URI on the authorization server. The URI should be short and easy to remember as end users will be asked to manually type it into their user agent.
      • verificationUriComplete

        private java.lang.String verificationUriComplete
        verification_uri_complete OPTIONAL. A verification URI that includes the "user_code" (or other information with the same function as the "user_code"), which is designed for non-textual transmission.
      • expiresInSeconds

        private final int expiresInSeconds
        expires_in REQUIRED. The lifetime in seconds of the "device_code" and "user_code".
      • intervalSeconds

        private int intervalSeconds
        interval OPTIONAL. The minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default.
    • Constructor Detail

      • DeviceAuthorization

        public DeviceAuthorization​(java.lang.String deviceCode,
                                   java.lang.String userCode,
                                   java.lang.String verificationUri,
                                   int expiresInSeconds)
    • Method Detail

      • setVerificationUriComplete

        public void setVerificationUriComplete​(java.lang.String verificationUriComplete)
      • setIntervalSeconds

        public void setIntervalSeconds​(int intervalSeconds)
      • getDeviceCode

        public java.lang.String getDeviceCode()
      • getUserCode

        public java.lang.String getUserCode()
      • getVerificationUri

        public java.lang.String getVerificationUri()
      • getVerificationUriComplete

        public java.lang.String getVerificationUriComplete()
      • getExpiresInSeconds

        public long getExpiresInSeconds()
      • getIntervalSeconds

        public int getIntervalSeconds()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object