com.atlassian.crowd.directory.ldap.util
Class GuidHelper

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.util.GuidHelper

public class GuidHelper
extends Object

Util for GUID (externalId) transformations

Since:
v2.7.0

Constructor Summary
GuidHelper()
           
 
Method Summary
static String getGUIDAsString(byte[] inArr)
          The returned representation doesn't match AD's string representation, but it doesn't matter as the GUID should be treated as an opaque identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuidHelper

public GuidHelper()
Method Detail

getGUIDAsString

public static String getGUIDAsString(byte[] inArr)
The returned representation doesn't match AD's string representation, but it doesn't matter as the GUID should be treated as an opaque identifier. Basically, the method is a byte array to hex string. AD chooses to order the hex string in partial reverse, eg. Normal Hex String: 6797e1e5ecb5154f960f865c28c015fa AD Formatted String: e5e19767-b5ec-4f15-960f-865c28c015fa This method returns the "normal" hex string.

Parameters:
inArr -
Returns:


Copyright © 2014 Atlassian. All Rights Reserved.