In cases where LDAP attribute values represent concrete Java objects, a ValueTranscoder can be used to convert those types. The ValueTranscoder interface looks like:
Ldaptive provides the following value transcoder implementations:
CertificateValueTranscoder
Provides the ability to read a PEM encoded certificate from an LDAP attribute in order to create a java.security.cert.Certificate object. Conversely, a java.security.cert.Certificate can also be written to the directory as a PEM encoded certificate.
GeneralizedTimeValueTranscoder
Provides the ability to read a generalized time from an LDAP attribute in order to create a ZonedDateTime object. Conversely, a ZonedDateTime can also be written to the directory in generalized time format.
UUIDValueTranscoder
Provides the ability to read a generalized time from an LDAP attribute in order to create a ZonedDateTime object. Conversely, a ZonedDateTime can also be written to the directory in generalized time format.