Interface RFC8628Constants


  • public interface RFC8628Constants

    Created by Jeff Gaynor
    on 2/9/21 at 11:22 AM

    • Field Detail

      • VERIFICATION_URI

        static final String 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.
        See Also:
        Constant Field Values
      • VERIFICATION_URI_COMPLETE

        static final String 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.
        See Also:
        Constant Field Values
      • EXPIRES_IN

        static final String EXPIRES_IN
        REQUIRED. The lifetime in seconds of the "device_code" and "user_code".
        See Also:
        Constant Field Values
      • INTERVAL

        static final String 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.
        See Also:
        Constant Field Values
      • CODE_CHARS

        static final char[] CODE_CHARS
        Characters to be used in user codes. This is almost basic ascii except for characters that are confused. So there is zero, but no lower/uppercase "oh". Similar no lower case "L" which looks like a 1 in a lot of fonts.
      • USER_CODE_DEFAULT_LENGTH

        static final int USER_CODE_DEFAULT_LENGTH
        Number of characters in a user code. So if this is 6, then a user code of ABC_DEF (6 actual characters, exclusive of separator) will be created. To be safe, 8*USER_CODE_DEFAULT_LENGTH is the number of bytes created, since how many we need is based on the number of CODE_CHARS and it gets murky fast how to exactly compute the number of bytes. T
        See Also:
        Constant Field Values
      • USER_CODE_SEPERATOR_CHAR

        static final char USER_CODE_SEPERATOR_CHAR
        Used between sets of 4 characters in the user code for readability
        See Also:
        Constant Field Values
      • DEFAULT_WAIT

        static final long DEFAULT_WAIT
        Number of milliseconds that we wait between calls to create a new user code. Spec suggests 5 seconds.
        See Also:
        Constant Field Values