|
5 | 5 | namespace UUID; |
6 | 6 |
|
7 | 7 | /** |
8 | | - * Represents a universally unique identifier (UUID), according to RFC 4122. |
| 8 | + * Represents a universally unique identifier (UUID), according to RFC 9562. |
9 | 9 | * |
10 | 10 | * This class provides the static methods `uuid3()`, `uuid4()`, `uuid5()`, |
11 | 11 | * `uuid6()`, `uuid7()`, and `uuid8()` for generating version 3, 4, 5, |
12 | | - * 6 (draft), 7 (draft), and 8 (draft) UUIDs. |
| 12 | + * 6, 7, and 8 UUIDs. |
13 | 13 | * |
14 | 14 | * If all you want is a unique ID, you should call `uuid4()`. |
15 | 15 | * |
16 | | - * @link http://tools.ietf.org/html/rfc4122 |
17 | | - * @link https://github.com/ietf-wg-uuidrev/rfc4122bis |
| 16 | + * @link https://datatracker.ietf.org/doc/rfc9562/ |
18 | 17 | * @link http://en.wikipedia.org/wiki/Universally_unique_identifier |
19 | 18 | */ |
20 | 19 | class UUID |
21 | 20 | { |
22 | 21 | /** |
23 | 22 | * When this namespace is specified, the name string is a fully-qualified domain name. |
24 | 23 | * @var string |
25 | | - * @link http://tools.ietf.org/html/rfc4122#appendix-C |
| 24 | + * @link https://www.rfc-editor.org/rfc/rfc9562.html#name-namespace-id-usage-and-allo |
26 | 25 | */ |
27 | 26 | public const NAMESPACE_DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; |
28 | 27 | /** |
29 | 28 | * When this namespace is specified, the name string is a URL. |
30 | 29 | * @var string |
31 | | - * @link http://tools.ietf.org/html/rfc4122#appendix-C |
| 30 | + * @link https://www.rfc-editor.org/rfc/rfc9562.html#name-namespace-id-usage-and-allo |
32 | 31 | */ |
33 | 32 | public const NAMESPACE_URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; |
34 | 33 | /** |
35 | 34 | * When this namespace is specified, the name string is an ISO OID. |
36 | 35 | * @var string |
37 | | - * @link http://tools.ietf.org/html/rfc4122#appendix-C |
| 36 | + * @link https://www.rfc-editor.org/rfc/rfc9562.html#name-namespace-id-usage-and-allo |
38 | 37 | */ |
39 | 38 | public const NAMESPACE_OID = '6ba7b812-9dad-11d1-80b4-00c04fd430c8'; |
40 | 39 | /** |
41 | 40 | * When this namespace is specified, the name string is an X.500 DN in DER or a text output format. |
42 | 41 | * @var string |
43 | | - * @link http://tools.ietf.org/html/rfc4122#appendix-C |
| 42 | + * @link https://www.rfc-editor.org/rfc/rfc9562.html#name-namespace-id-usage-and-allo |
44 | 43 | */ |
45 | 44 | public const NAMESPACE_X500 = '6ba7b814-9dad-11d1-80b4-00c04fd430c8'; |
46 | 45 | /** |
47 | 46 | * The nil UUID is special form of UUID that is specified to have all 128 bits set to zero. |
48 | 47 | * @var string |
49 | | - * @link http://tools.ietf.org/html/rfc4122#section-4.1.7 |
| 48 | + * @link https://www.rfc-editor.org/rfc/rfc9562.html#name-nil-uuid |
50 | 49 | */ |
51 | 50 | public const NIL = '00000000-0000-0000-0000-000000000000'; |
52 | 51 | /** |
53 | 52 | * The Max UUID is special form of UUID that is specified to have all 128 bits set to one. |
54 | 53 | * @var string |
55 | | - * @link https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-00.html#name-max-uuid |
| 54 | + * @link https://www.rfc-editor.org/rfc/rfc9562.html#name-max-uuid |
56 | 55 | */ |
57 | 56 | public const MAX = 'FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF'; |
58 | 57 |
|
59 | 58 | /** |
60 | 59 | * 0x01b21dd213814000 is the number of 100-ns intervals between the |
61 | 60 | * UUID epoch 1582-10-15 00:00:00 and the Unix epoch 1970-01-01 00:00:00. |
62 | 61 | * @var int |
63 | | - * @link https://tools.ietf.org/html/rfc4122#section-4.1.4 |
| 62 | + * @link https://www.rfc-editor.org/rfc/rfc9562.html#name-test-vectors |
64 | 63 | */ |
65 | 64 | public const TIME_OFFSET_INT = 0x01b21dd213814000; |
66 | 65 |
|
|
0 commit comments