Package org.ldaptive.ad
Class GlobalIdentifier
- java.lang.Object
-
- org.ldaptive.ad.GlobalIdentifier
-
public final class GlobalIdentifier extends java.lang.Object
Class to represent an active directory GUID. 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 guid)
Converts the supplied GUID to it's binary format.static java.lang.String
toString(byte[] guid)
Converts the supplied GUID to it's string format.
-
-
-
Method Detail
-
toString
public static java.lang.String toString(byte[] guid)
Converts the supplied GUID to it's string format.- Parameters:
guid
- to convert- Returns:
- string format of the GUID
-
toBytes
public static byte[] toBytes(java.lang.String guid)
Converts the supplied GUID to it's binary format.- Parameters:
guid
- to convert- Returns:
- binary format of the GUID
-
-