Package org.ldaptive

Class LdapEntry.AttributeParser

  • Enclosing class:

    protected static class LdapEntry.AttributeParser
    extends Object
    Parses a buffer containing an attribute name and its values.
    • Field Detail

      • NAME_PATH

        private static final DERPath NAME_PATH
        DER path to name.

        private static final DERPath VALUES_PATH
        DER path to values.
      • parser

        private final DERParser parser
        Parser for decoding LDAP attributes.
      • name

        private String name
        Attribute name.
    • 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.
        buffer - to parse
      • getName

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

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