Class SID

java.lang.Object
com.hierynomus.msdtyp.SID

public class SID extends Object
[MS-DTYP].pdf 2.4.2 SecurityIdentifier SID
  • Field Details

    • EVERYONE

      public static final SID EVERYONE
    • revision

      private byte revision
    • sidIdentifierAuthority

      private byte[] sidIdentifierAuthority
    • subAuthorities

      private long[] subAuthorities
    • SID_REGEX

      private static final Pattern SID_REGEX
  • Constructor Details

    • SID

      public SID()
    • SID

      public SID(byte revision, byte[] sidIdentifierAuthority, long[] subAuthorities)
  • Method Details

    • fromString

      public static SID fromString(String sidString)
    • write

      public void write(SMBBuffer buffer)
    • read

      public static SID read(SMBBuffer buffer) throws Buffer.BufferException
      Throws:
      Buffer.BufferException
    • byteCount

      public int byteCount()
    • toString

      public String toString()
      Return the numeric representation of this sid such as S-1-5-21-1496946806-2192648263-3843101252-1029.
      Overrides:
      toString in class Object
    • getRevision

      public byte getRevision()
    • getSidIdentifierAuthority

      public byte[] getSidIdentifierAuthority()
    • getSubAuthorities

      public long[] getSubAuthorities()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object