Package net.shibboleth.idp.authn
Class AbstractTemplateSearchDnResolver.EscapingReferenceInsertionEventHandler
java.lang.Object
net.shibboleth.idp.authn.AbstractTemplateSearchDnResolver.EscapingReferenceInsertionEventHandler
- All Implemented Interfaces:
org.apache.velocity.app.event.EventHandler
,org.apache.velocity.app.event.ReferenceInsertionEventHandler
- Enclosing class:
- AbstractTemplateSearchDnResolver
protected static class AbstractTemplateSearchDnResolver.EscapingReferenceInsertionEventHandler
extends Object
implements org.apache.velocity.app.event.ReferenceInsertionEventHandler
Escapes LDAP attribute values added to the template context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Object
ReturnsSearchFilter.encodeValue(byte[])
if value is a string or byte array.referenceInsert
(org.apache.velocity.context.Context context, String reference, Object value)
-
Constructor Details
-
EscapingReferenceInsertionEventHandler
protected EscapingReferenceInsertionEventHandler()
-
-
Method Details
-
referenceInsert
public Object referenceInsert(org.apache.velocity.context.Context context, String reference, Object value) - Specified by:
referenceInsert
in interfaceorg.apache.velocity.app.event.ReferenceInsertionEventHandler
-
encode
ReturnsSearchFilter.encodeValue(byte[])
if value is a string or byte array.- Parameters:
value
- to encode- Returns:
- encoded value
-