| java.lang.Object com.sun.jndi.ldap.BasicControl
All known Subclasses: com.sun.jndi.ldap.PersistentSearchControl, com.sun.jndi.ldap.ManageReferralControl, com.sun.jndi.ldap.EntryChangeResponseControl,
BasicControl | public class BasicControl implements Control(Code) | | This class provides a basic implementation of the Control
interface. It represents an LDAPv3 Control as defined in RFC-2251.
author: Vincent Ryan |
Field Summary | |
protected boolean | criticality The control's criticality. | protected String | id The control's object identifier string. | protected byte[] | value The control's ASN.1 BER encoded value. |
Constructor Summary | |
public | BasicControl(String id) Constructs a new instance of BasicControl. | public | BasicControl(String id, boolean criticality, byte[] value) Constructs a new instance of BasicControl. |
Method Summary | |
public byte[] | getEncodedValue() Retrieves the control's ASN.1 BER encoded value.
The result is the raw BER bytes including the tag and length of
the control's value. | public String | getID() Retrieves the control's object identifier string. | public boolean | isCritical() Determines the control's criticality. |
criticality | protected boolean criticality(Code) | | The control's criticality.
|
id | protected String id(Code) | | The control's object identifier string.
|
value | protected byte[] value(Code) | | The control's ASN.1 BER encoded value.
|
BasicControl | public BasicControl(String id)(Code) | | Constructs a new instance of BasicControl.
It is a non-critical control.
Parameters: id - The control's object identifier string. |
BasicControl | public BasicControl(String id, boolean criticality, byte[] value)(Code) | | Constructs a new instance of BasicControl.
Parameters: id - The control's object identifier string. Parameters: criticality - The control's criticality. Parameters: value - The control's ASN.1 BER encoded value.May be null. |
getEncodedValue | public byte[] getEncodedValue()(Code) | | Retrieves the control's ASN.1 BER encoded value.
The result is the raw BER bytes including the tag and length of
the control's value. It does not include the control's object
identifier string or criticality.
A possibly null byte array representing the control'sASN.1 BER encoded value. |
getID | public String getID()(Code) | | Retrieves the control's object identifier string.
The non-null object identifier string. |
isCritical | public boolean isCritical()(Code) | | Determines the control's criticality.
true if the control is critical; false otherwise. |
|
|