Class AttributeCheckContextMapper

  • All Implemented Interfaces:
    org.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>

    public class AttributeCheckContextMapper
    extends java.lang.Object
    implements org.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>
    Dummy ContextMapper for testing purposes to check that the received Attributes are the expected ones.
    • Constructor Detail

      • AttributeCheckContextMapper

        public AttributeCheckContextMapper()
    • Method Detail

      • mapFromContext

        public org.springframework.ldap.core.DirContextAdapter mapFromContext​(java.lang.Object ctx)
        Specified by:
        mapFromContext in interface org.springframework.ldap.core.ContextMapper<org.springframework.ldap.core.DirContextAdapter>
      • setAbsentAttributes

        public void setAbsentAttributes​(java.lang.String[] absentAttributes)
      • setExpectedAttributes

        public void setExpectedAttributes​(java.lang.String[] expectedAttributes)
      • setExpectedValues

        public void setExpectedValues​(java.lang.String[] expectedValues)