public class BasicControl extends Objectimplements Control
| Modifier and Type | Field and Description |
|---|---|
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.
|
CRITICAL, NONCRITICAL| Constructor and Description |
|---|
BasicControl(String
Constructs a non-critical control.
|
BasicControl(String
Constructs a control using the supplied arguments.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncodedValue()
Retrieves the control's ASN.1 BER encoded value.
|
String |
getID()
Retrieves the control's object identifier string.
|
boolean |
isCritical()
Determines the control's criticality.
|
protected Stringid
protected boolean criticality
protected byte[] value
public BasicControl(Stringid)
id - The control's object identifier string.
public BasicControl(Stringid, boolean criticality, byte[] value)
id - The control's object identifier string.
criticality - The control's criticality.
value - 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.
public StringgetID()
public boolean isCritical()
isCritical in interface
Control
public byte[] getEncodedValue()
getEncodedValue in interface
Control