Package org.ldaptive

Class AbstractMessage.ControlParser

  • Enclosing class:
    AbstractMessage

    protected static class AbstractMessage.ControlParser
    extends java.lang.Object
    Parses a buffer containing an LDAP control.
    • Constructor Summary

      Constructors 
      Constructor Description
      ControlParser()
      Creates a new control parser.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Boolean> getCritical()
      Returns the control criticality.
      java.util.Optional<java.lang.String> getOid()
      Returns the control oid.
      java.util.Optional<DERBuffer> getValue()
      Returns the control value.
      void parse​(DERBuffer buffer)
      Examines the supplied buffer and parses an LDAP control if one is found.
      • Methods inherited from class java.lang.Object

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

      • ControlParser

        public ControlParser()
        Creates a new control parser.
    • Method Detail

      • parse

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

        public java.util.Optional<java.lang.Boolean> getCritical()
        Returns the control criticality.
        Returns:
        criticality or empty
      • getOid

        public java.util.Optional<java.lang.String> getOid()
        Returns the control oid.
        Returns:
        control oid or empty
      • getValue

        public java.util.Optional<DERBuffer> getValue()
        Returns the control value.
        Returns:
        control value or empty