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 Modifier Constructor Description protectedEscapingReferenceInsertionEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Objectencode(Object value)ReturnsSearchFilter.encodeValue(byte[])if value is a string or byte array.ObjectreferenceInsert(org.apache.velocity.context.Context context, String reference, Object value)
-
-
-
Method Detail
-
referenceInsert
public Object referenceInsert(org.apache.velocity.context.Context context, String reference, Object value)
- Specified by:
referenceInsertin interfaceorg.apache.velocity.app.event.ReferenceInsertionEventHandler
-
encode
private Object encode(Object value)
ReturnsSearchFilter.encodeValue(byte[])if value is a string or byte array.- Parameters:
value- to encode- Returns:
- encoded value
-
-