Class DeviceCode

    • Constructor Detail

      • DeviceCode

        public DeviceCode​(String value)
        Creates a new device code with the specified value.
        Parameters:
        value - The code value. Must not be null or empty string.
      • DeviceCode

        public DeviceCode​(int byteLength)
        Creates a new device code with a randomly generated value of the specified byte length, Base64URL-encoded.
        Parameters:
        byteLength - The byte length of the value to generate. Must be greater than one.
      • DeviceCode

        public DeviceCode()
        Creates a new device code with a randomly generated 256-bit (32-byte) value, Base64URL-encoded.