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 Sid
ANONYMOUS_SID
static Sid
NULL_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 Sid
append(long relativeId)
boolean
equals(Object obj)
byte[]
getBytes()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Sid
public Sid(byte[] sidBytes)
Parses a SID object from a byte array.- Parameters:
sidBytes
- SID structure encoded as bytes- Throws:
NullPointerException
- ifsidBytes
is nullIllegalArgumentException
- ifsidBytes
contains 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()
-
-