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