Package net.sf.michaelo.tomcat.realm
Class Sid
- java.lang.Object
-
- net.sf.michaelo.tomcat.realm.Sid
-
public class Sid extends Object
A class representing aSID(security identifier) from MS-DTYP.
-
-
Field Summary
Fields Modifier and Type Field Description static SidANONYMOUS_SIDstatic SidNULL_SID
-
Constructor Summary
Constructors Constructor Description Sid(byte[] sidBytes)Parses a SID object from a byte array.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sidappend(long relativeId)booleanequals(Object obj)byte[]getBytes()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Sid
public Sid(byte[] sidBytes)
Parses a SID object from a byte array.- Parameters:
sidBytes- SID structure encoded as bytes- Throws:
NullPointerException- ifsidBytesis nullIllegalArgumentException- ifsidBytescontains less than 12 bytesIllegalArgumentException- if SID's revision is not 1IllegalArgumentException- if SID's subauthority count is more than 15
-
-
Method Detail
-
append
public Sid append(long relativeId)
-
getBytes
public byte[] getBytes()
-
-