Package org.ldaptive
Class AbstractMessage.ControlParser
java.lang.Object
org.ldaptive.AbstractMessage.ControlParser
- Enclosing class:
- AbstractMessage
Parses a buffer containing an LDAP control.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DERPath
DER path to alternate value.private Boolean
Control criticality.private static final DERPath
DER path to criticality.private String
Control oid.private static final DERPath
DER path to OID.private final DERParser
Parser for decoding LDAP controls.private DERBuffer
Control value.private static final DERPath
DER path to value. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CRITICAL_PATH
DER path to criticality. -
OID_PATH
DER path to OID. -
VALUE_PATH
DER path to value. -
ALT_VALUE_PATH
DER path to alternate value. -
parser
Parser for decoding LDAP controls. -
critical
Control criticality. -
oid
Control oid. -
value
Control value.
-
-
Constructor Details
-
ControlParser
public ControlParser()Creates a new control parser.
-
-
Method Details
-
parse
Examines the supplied buffer and parses an LDAP control if one is found.- Parameters:
buffer
- to parse
-
getCritical
Returns the control criticality.- Returns:
- criticality or empty
-
getOid
Returns the control oid.- Returns:
- control oid or empty
-
getValue
Returns the control value.- Returns:
- control value or empty
-