Package org.ldaptive.ad
Class SecurityIdentifier
- java.lang.Object
-
- org.ldaptive.ad.SecurityIdentifier
-
public final class SecurityIdentifier extends java.lang.Object
Class to represent an active directory SID. Provides conversion from binary to string and vice versa.- Author:
- Middleware Services
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
toString
public static java.lang.String toString(byte[] sid)
Converts the supplied SID to it's string format.- Parameters:
sid
- to convert- Returns:
- string format of the SID
-
toBytes
public static byte[] toBytes(java.lang.String sid)
Converts the supplied SID to it's binary format.- Parameters:
sid
- to convert- Returns:
- binary format of the SID
-
-