I have some code that is using LDIFReader to parse an LDIF file and then I have a loop that loops through the list of LDIFEntry it returns. I then use
entry.get(<attribute name>).getString() to get the value of the attributes I am looking for. The problem arises when one of the entries has an attribute I am looking for that is base64 encoded. So the line in the LDIF file looks like: <attribute name>:: <base64 string> (notice the two colons instead of one) In this case getString() throws an LdapInvalidAttributeValueException because the value isn't a string. However, I didn't see a way to check what the value type is and if it is base64 encoded to return the decoded value. Any help greatly appreciated.
