PHP Class LdapTools\Security\SID

Author: Chad Sikorra ([email protected])
显示文件 Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Property Type Description
$identifierAuthority The value that indicates the authority under which the SID was created.
$revisionLevel The revision level of the SID.
$subAuthorities Sub-authority values that uniquely identify a principal relative to the identifier authority.

Public Methods

Method Description
__construct ( string $sid )
__toString ( ) : string
getIdentifierAuthority ( ) : integer Get the value that indicates the authority under which the SID was created.
getRevisionLevel ( ) : integer Get the revision level of the SID.
getShortName ( ) : string | null Get the SDDL short name for the SID, if it has one. If it does not this will return null.
getSubAuthorities ( ) : int[] Get the array of sub-authority values that uniquely identify a principal relative to the identifier authority.
getSubAuthorityCount ( ) : integer The number of elements in the sub-authority array.
toBinary ( ) : string Get the SID in binary string form.
toString ( ) : string Get the SID in its friendly string form.

Protected Methods

Method Description
decodeFromBinary ( string $value ) Parse the binary form of a SID into its respective parts that make it up.
decodeFromString ( string $value )

Method Details

__construct() public method

public __construct ( string $sid )
$sid string The SID in string, short name, or binary form.

__toString() public method

public __toString ( ) : string
return string

decodeFromBinary() protected method

Parse the binary form of a SID into its respective parts that make it up.
protected decodeFromBinary ( string $value )
$value string

decodeFromString() protected method

protected decodeFromString ( string $value )
$value string

getIdentifierAuthority() public method

Get the value that indicates the authority under which the SID was created.
public getIdentifierAuthority ( ) : integer
return integer

getRevisionLevel() public method

Get the revision level of the SID.
public getRevisionLevel ( ) : integer
return integer

getShortName() public method

Get the SDDL short name for the SID, if it has one. If it does not this will return null.
public getShortName ( ) : string | null
return string | null

getSubAuthorities() public method

Get the array of sub-authority values that uniquely identify a principal relative to the identifier authority.
public getSubAuthorities ( ) : int[]
return int[]

getSubAuthorityCount() public method

The number of elements in the sub-authority array.
public getSubAuthorityCount ( ) : integer
return integer

toBinary() public method

Get the SID in binary string form.
public toBinary ( ) : string
return string

toString() public method

Get the SID in its friendly string form.
public toString ( ) : string
return string

Property Details

$identifierAuthority protected_oe property

The value that indicates the authority under which the SID was created.
protected $identifierAuthority

$revisionLevel protected_oe property

The revision level of the SID.
protected $revisionLevel

$subAuthorities protected_oe property

Sub-authority values that uniquely identify a principal relative to the identifier authority.
protected $subAuthorities