Package org.ldaptive
Class AbstractMessage.ControlParser
- java.lang.Object
-
- org.ldaptive.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.
-
-
-
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
-
-