federation/ldap/src/main/java/org/keycloak/federation/ldap/idm/store/ldap/LDAPUtil.java
/**
     * <p>Decode a raw byte array representing the value of the <code>objectGUID</code> attribute retrieved from Active
     * Directory.</p>
     *
     * <p>The returned string is useful to directly bind an entry. Eg.:</p>
     *
     * <p>
     * String bindingString = decodeObjectGUID(objectGUID);
     * <br/>
     * Attributes attributes = ctx.getAttributes(bindingString);
     * </p>
     *
     * @param objectGUID A raw byte array representing the value of the <code>objectGUID</code> attribute retrieved from
     * Active Directory.
     *
     * @return A string representing the decoded value in the form of [3][2][1][0]-[5][4]-[7][6]-[8][9]-[10][11][12][13][14][15].
     */
Decode a raw byte array representing the value of the objectGUID attribute retrieved from Active
Directory.

The returned string is useful to directly bind an entry. Eg.:



@param objectGUID A raw byte array representing the value of the objectGUID attribute retrieved from
Active Directory.


Decode a raw byte array representing the value of the objectGUID attribute retrieved from Active Directory . The returned string is useful to directly bind an entry . Eg . : @param objectGUID A raw byte array representing the value of the objectGUID attribute retrieved from Active Directory .
public static String decodeObjectGUID(byte[] objectGUID) {
        StringBuilder displayStr = new StringBuilder();
        displayStr.append(convertToDashedString(objectGUID));
        return displayStr.toString();
    }
public static String decodeObjectGUID ( byte [ ] objectGUID ) { StringBuilder displayStr = new StringBuilder ( ) ; displayStr . append ( convertToDashedString ( objectGUID ) ) ; return displayStr . toString ( ) ; }
<p>Decode a raw byte array representing the value of the <code>objectGUID</code> attribute retrieved from Active
 Directory.</p>
<p > Decode a raw byte array representing the value of the <code > objectGUID< / code > attribute retrieved from Active Directory . < / p >