Package org.ldaptive
Class AbstractMessage.ControlParser
- java.lang.Object
-
- org.ldaptive.AbstractMessage.ControlParser
-
- Enclosing class:
- AbstractMessage
protected static class AbstractMessage.ControlParser extends Object
Parses a buffer containing an LDAP control.
-
-
Field Summary
Fields Modifier and Type Field Description private static DERPath
ALT_VALUE_PATH
DER path to alternate value.private Boolean
critical
Control criticality.private static DERPath
CRITICAL_PATH
DER path to criticality.private String
oid
Control oid.private static DERPath
OID_PATH
DER path to OID.private DERParser
parser
Parser for decoding LDAP controls.private DERBuffer
value
Control value.private static DERPath
VALUE_PATH
DER path to value.
-
Constructor Summary
Constructors Constructor Description ControlParser()
Creates a new control parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Boolean>
getCritical()
Returns the control criticality.Optional<String>
getOid()
Returns the control oid.Optional<DERBuffer>
getValue()
Returns the control value.void
parse(DERBuffer buffer)
Examines the supplied buffer and parses an LDAP control if one is found.
-
-
-
Field Detail
-
CRITICAL_PATH
private static final DERPath CRITICAL_PATH
DER path to criticality.
-
OID_PATH
private static final DERPath OID_PATH
DER path to OID.
-
VALUE_PATH
private static final DERPath VALUE_PATH
DER path to value.
-
ALT_VALUE_PATH
private static final DERPath ALT_VALUE_PATH
DER path to alternate value.
-
parser
private final DERParser parser
Parser for decoding LDAP controls.
-
critical
private Boolean critical
Control criticality.
-
oid
private String oid
Control oid.
-
value
private DERBuffer value
Control value.
-
-