1<?php
2
3/**
4 * This file is part of the ramsey/uuid library
5 *
6 * For the full copyright and license information, please view the LICENSE
7 * file that was distributed with this source code.
8 *
9 * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
10 * @license http://opensource.org/licenses/MIT MIT
11 */
12
13declare(strict_types=1);
14
15namespace Ramsey\Uuid\Provider;
16
17use Ramsey\Uuid\Rfc4122\UuidV2;
18use Ramsey\Uuid\Type\Integer as IntegerObject;
19
20/**
21 * A DCE provider provides access to local domain identifiers for version 2,
22 * DCE Security, UUIDs
23 *
24 * @see UuidV2
25 */
26interface DceSecurityProviderInterface
27{
28    /**
29     * Returns a user identifier for the system
30     *
31     * @link https://en.wikipedia.org/wiki/User_identifier User identifier
32     */
33    public function getUid(): IntegerObject;
34
35    /**
36     * Returns a group identifier for the system
37     *
38     * @link https://en.wikipedia.org/wiki/Group_identifier Group identifier
39     */
40    public function getGid(): IntegerObject;
41}
42