Documentation

DceSecurityGenerator
in package
implements DceSecurityGeneratorInterface

DceSecurityGenerator generates strings of binary data based on a local domain, local identifier, node ID, clock sequence, and the current time

Interfaces, Classes, Traits and Enums

DceSecurityGeneratorInterface
A DCE Security generator generates strings of binary data based on a local domain, local identifier, node ID, clock sequence, and the current time

Table of Contents

CLOCK_SEQ_HIGH  = 63
Upper bounds for the clock sequence in DCE Security UUIDs.
CLOCK_SEQ_LOW  = 0
Lower bounds for the clock sequence in DCE Security UUIDs.
DOMAINS  = [\Ramsey\Uuid\Uuid::DCE_DOMAIN_PERSON, \Ramsey\Uuid\Uuid::DCE_DOMAIN_GROUP, \Ramsey\Uuid\Uuid::DCE_DOMAIN_ORG]
$dceSecurityProvider  : DceSecurityProviderInterface
$numberConverter  : NumberConverterInterface
$timeGenerator  : TimeGeneratorInterface
__construct()  : mixed
generate()  : string
Generate a binary string from a local domain, local identifier, node ID, clock sequence, and current time

Constants

CLOCK_SEQ_HIGH

Upper bounds for the clock sequence in DCE Security UUIDs.

private mixed CLOCK_SEQ_HIGH = 63

CLOCK_SEQ_LOW

Lower bounds for the clock sequence in DCE Security UUIDs.

private mixed CLOCK_SEQ_LOW = 0

DOMAINS

private mixed DOMAINS = [\Ramsey\Uuid\Uuid::DCE_DOMAIN_PERSON, \Ramsey\Uuid\Uuid::DCE_DOMAIN_GROUP, \Ramsey\Uuid\Uuid::DCE_DOMAIN_ORG]

Properties

Methods

generate()

Generate a binary string from a local domain, local identifier, node ID, clock sequence, and current time

public generate(int $localDomain[, Integer|null $localIdentifier = null ][, Hexadecimal|null $node = null ][, int|null $clockSeq = null ]) : string
Parameters
$localDomain : int

The local domain to use when generating bytes, according to DCE Security

$localIdentifier : Integer|null = null

The local identifier for the given domain; this may be a UID or GID on POSIX systems, if the local domain is person or group, or it may be a site-defined identifier if the local domain is org

$node : Hexadecimal|null = null

A 48-bit number representing the hardware address

$clockSeq : int|null = null

A 14-bit number used to help avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes

Return values
string

A binary string

Search results