Class AuthorizationCode

    • Constructor Detail

      • AuthorizationCode

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

        public AuthorizationCode​(int byteLength)
        Creates a new authorisation 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.
      • AuthorizationCode

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