Package org.ldaptive

Class LdapEntry.AttributeParser

  • Enclosing class:
    LdapEntry

    protected static class LdapEntry.AttributeParser
    extends java.lang.Object
    Parses a buffer containing an attribute name and it's values.
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributeParser()
      Creates a new attribute parser.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getName()
      Returns the attribute name.
      java.util.Optional<java.util.List<java.nio.ByteBuffer>> getValues()
      Returns the attribute values.
      void parse​(DERBuffer buffer)
      Examines the supplied buffer and parses an LDAP attribute if one is found.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttributeParser

        public AttributeParser()
        Creates a new attribute parser.
    • Method Detail

      • parse

        public void parse​(DERBuffer buffer)
        Examines the supplied buffer and parses an LDAP attribute if one is found.
        Parameters:
        buffer - to parse
      • getName

        public java.util.Optional<java.lang.String> getName()
        Returns the attribute name.
        Returns:
        attribute name or empty
      • getValues

        public java.util.Optional<java.util.List<java.nio.ByteBuffer>> getValues()
        Returns the attribute values.
        Returns:
        attribute values or empty