Class AttributeToContextCallbackHandler<T>
- All Implemented Interfaces:
org.springframework.ldap.core.NameClassPairCallbackHandler
Modified by Atlassian From Spring LDAP 2.0.2.RELEASE
The purpose of this class is to provide a NameAttributesPair when no object was bound to the Binding returned.
This is to facilitate the fix for the CWD-4754 vulnerability,
which consists of setting the returnObj
flag in SearchControls to false, so that JNDI's Java object
unmarshalling feature won't be used.
Changes:
- if no object was bound to the Binding
, but the NameClassPair
was an
instance of SearchResult
, then a NameAttributesPair
wrapping the name and
attributes will be returned.
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeToContextCallbackHandler
(org.springframework.ldap.core.ContextMapper<T> mapper) -
Method Summary
Methods inherited from class org.springframework.ldap.core.CollectingNameClassPairCallbackHandler
getList, handleNameClassPair
-
Constructor Details
-
AttributeToContextCallbackHandler
-
-
Method Details
-
getObjectFromNameClassPair
- Overrides:
getObjectFromNameClassPair
in classorg.springframework.ldap.core.ContextMapperCallbackHandler<T>
- Throws:
NamingException
-