Control
interface. It represents an LDAPv3 Control as defined in
RFC 2251.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | criticality
The control's criticality. |
| protected String | id
The control's object identifier string. |
| private static final long | |
| protected byte[] | value
The control's ASN.1 BER encoded value. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | BasicControl(String
The control's object identifier string. id, boolean The control's criticality. criticality, byte[] The control's ASN.1 BER encoded value.
It is not cloned - any changes to value
will affect the contents of the control.
It may be null. value)Constructs a control using the supplied arguments. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: A possibly null byte array representing the control's ASN.1 BER encoded value. It is not cloned - any changes to the returned value will affect the contents of the control.Implements javax. Retrieves the control's ASN.1 BER encoded value. |
| public String | Returns: The non-null object identifier string.Implements javax. Retrieves the control's object identifier string. |
| public boolean | Returns: true if the control is critical; false otherwise.Implements javax. Determines the control's criticality. |
| criticality | back to summary |
|---|---|
| protected boolean criticality The control's criticality. | |
| id | back to summary |
|---|---|
| protected String id The control's object identifier string. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
| protected byte[] value The control's ASN.1 BER encoded value. | |
| BasicControl | back to summary |
|---|---|
| public BasicControl(String id) Constructs a non-critical control.
| |
| BasicControl | back to summary |
|---|---|
| public BasicControl(String id, boolean criticality, byte[] value) Constructs a control using the supplied arguments.
| |
| getEncodedValue | back to summary |
|---|---|
| public byte[] getEncodedValue() Implements javax. Retrieves the control's ASN.1 BER encoded value. The result includes the BER tag and length for the control's value but does not include the control's object identifier and criticality setting.
| |
| getID | back to summary |
|---|---|
| public String getID() Implements javax. Retrieves the control's object identifier string.
| |
| isCritical | back to summary |
|---|---|
| public boolean isCritical() Implements javax. Determines the control's criticality.
| |