package sid
Library
Module
Module type
Parameter
Class
Class type
type sub_auths = Stdint.Uint32.t array
val create : ?sa:Stdint.Uint32.t array -> Stdint.Uint64.t -> t option
create sas ia
constructs a SID with the identifier authority ia
and, optionally, the subauthorities sas
. The operation will return None
if sa
contains more than fifteen subauthorities.
val create_unsafe : Stdint.Uint32.t array -> Stdint.Uint64.t -> t
create_unsafe sas ia
constructs a SID with the identifier authority ia
and, optionally, the sub authorities sas
without validating the inputs. Use with caution.
val equal_sub_auths : Stdint.Uint32.t array -> Stdint.Uint32.t array -> bool
equal_sub_auths sa sb
tests whether sa
and sb
have identical subauthorities.
val get_ident_auth : t -> Stdint.Uint64.t
get_ident_auth s
get the identifier authority of SID s
.
module StringFmt : sig ... end
Conversions to and from the string format syntax (MS-DTYP 2.4.2.1).
module PacketRep : sig ... end
Conversion to and from the packet representation (MS-DTYP 2.4.2.2).
module WellKnown : sig ... end
Pre-defined SID constansts and constructors with fixed identifier authority (MS-DTYP 2.4.2.4).
val to_string : t -> string
to_string s
is an alias for StringFmt.encode s
.