org.ldaptive.ad
Class GlobalIdentifier

java.lang.Object
  extended by org.ldaptive.ad.GlobalIdentifier

public final class GlobalIdentifier
extends Object

Class to represent an active directory GUID. Provides conversion from binary to string and vice versa.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Method Summary
static byte[] toBytes(String guid)
          Converts the supplied GUID to it's binary format.
static String toString(byte[] guid)
          Converts the supplied GUID to it's string format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toString

public static 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(String guid)
Converts the supplied GUID to it's binary format.

Parameters:
guid - to convert
Returns:
binary format of the GUID


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.