public final class SecurityIdentifier
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
SecurityIdentifier()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private static long |
getLong(java.nio.ByteBuffer buffer,
boolean bigEndian)
Reads a long from the supplied byte buffer.
|
private static void |
putLong(java.nio.ByteBuffer buffer,
long value,
boolean bigEndian)
Writes a long into the supplied byte buffer.
|
static byte[] |
toBytes(java.lang.String sid)
Converts the supplied SID to it's binary format.
|
static java.lang.String |
toString(byte[] sid)
Converts the supplied SID to it's string format.
|
public static java.lang.String toString(byte[] sid)
sid - to convertpublic static byte[] toBytes(java.lang.String sid)
sid - to convertprivate static long getLong(java.nio.ByteBuffer buffer,
boolean bigEndian)
buffer - to read long frombigEndian - whether to read the bytes as big endianprivate static void putLong(java.nio.ByteBuffer buffer,
long value,
boolean bigEndian)
buffer - to write long tovalue - to writebigEndian - whether to write the bytes as big endian